app/Http/Controllers/CategoriesController.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()
    {
        if(auth()->user()->isAdmin()){	
            return view('pages.categories.create');	
        }	
        else abort(404);
    }
public function create ( ) { if ( auth ( ) -> user ( ) -> isAdmin ( ) ) { return view ( 'pages.categories.create' ) ; } else abort ( 404 ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .