app/Http/Controllers/Admin/AdminmenuController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $adminmenus = DB::table('adminmenus')->wherenull('parentid')->get();
        return view('admin.adminmenus.create',['adminmenus' => $adminmenus]);
    }
public function create ( ) { $ adminmenus = DB :: table ( 'adminmenus' ) -> wherenull ( 'parentid' ) -> get ( ) ; return view ( 'admin.adminmenus.create' , [ 'adminmenus' => $ adminmenus ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//$adminmenus=\App\Adminmenu::all();