app/Http/Controllers/Admin/AdminmenuController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $adminmenus=  Adminmenu::with('parent')->get();
        return view('admin.adminmenus.adminmenus',compact('adminmenus'));
    }
public function index ( ) { $ adminmenus = Adminmenu :: with ( 'parent' ) -> get ( ) ; return view ( 'admin.adminmenus.adminmenus' , compact ( 'adminmenus' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .