app/Http/Controllers/Admin/AdminmenuController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Adminmenu  $adminmenu
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit($id)
    {
        $adminmenus = DB::table('adminmenus')->wherenull('parentid')->get();
        $menuinfo=  Adminmenu::find($id);
        return view('admin.adminmenus.edit',['adminmenus' => $adminmenus, 'menuinfo'=> $menuinfo]);
    }
public function edit ( $ id ) { $ adminmenus = DB :: table ( 'adminmenus' ) -> wherenull ( 'parentid' ) -> get ( ) ; $ menuinfo = Adminmenu :: find ( $ id ) ; return view ( 'admin.adminmenus.edit' , [ 'adminmenus' => $ adminmenus , 'menuinfo' => $ menuinfo ] ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .