src/Controllers/QuickadminMenuController.php
public function createCustom()
    {
        $parentsSelect = Menu::where('menu_type', 2)->pluck('title', 'id')->prepend('-- no parent --', '');
        $roles         = Role::all();

        return view('qa::menus.createCustom', compact('parentsSelect', 'roles'));
    }
public function createCustom()
    {
        $parentsSelect = Menu::where('menu_type', 2)->pluck('title', 'id')->prepend('-- no parent --', '');
        $roles         = Role::all();

        return view('qa::menus.createCustom', compact('parentsSelect', 'roles'));
    }
public function createCustom ( ) { $ parentsSelect = Menu :: where ( 'menu_type' , 2 ) -> pluck ( 'title' , 'id' ) -> prepend ( '-- no parent --' , '' ) ; $ roles = Role :: all ( ) ; return view ( 'qa::menus.createCustom' , compact ( 'parentsSelect' , 'roles' ) ) ; }
Create custom controller page
@return \BladeView|bool|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
Create custom controller page