original_string: 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]);
      }
code: 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]);
      }
code_tokens: 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 ] ) ; }
docstring: Show the form for selecting a new resource.
  @param Request $request
  @return Response
docstring_tokens: Show the form for selecting a new resource .