public function select(Request $request)
    {
        // Set roles that have access
        $request->user()->authorizeRoles(['admin', 'editor']);

        // Get all pagetypes
        $pagetypes = PageType::all();
        return view('page::pages.select', ['pagetypes' => $pagetypes]);
    }
public function select(Request $request)
    {
        // Set roles that have access
        $request->user()->authorizeRoles(['admin', 'editor']);

        // Get all pagetypes
        $pagetypes = PageType::all();
        return view('page::pages.select', ['pagetypes' => $pagetypes]);
    }
public function select ( Request $ request ) { // Set roles that have access $ request -> user ( ) -> authorizeRoles ( [ 'admin' , 'editor' ] ) ; // Get all pagetypes $ pagetypes = PageType :: all ( ) ; return view ( 'page::pages.select' , [ 'pagetypes' => $ pagetypes ] ) ; }
Show the form for selecting a new resource.
@param Request $request
@return Response
Show the form for selecting a new resource .