app/Http/Controllers/Admin/RoleController.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()
    {
        $menulist= Adminmenu::wherenull('parentid')->with('children')->get();
        return view('admin.roles.create',compact('menulist'));
    }
public function create ( ) { $ menulist = Adminmenu :: wherenull ( 'parentid' ) -> with ( 'children' ) -> get ( ) ; return view ( 'admin.roles.create' , compact ( 'menulist' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .