www/app/Http/Controllers/PlayerController.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(Request $request)
    {
        if(!Auth::user()->hasRole('superadmin'))
            return redirect()->route('player.index');
        return view('player.create');
    }
public function create ( Request $ request ) { if ( ! Auth :: user ( ) -> hasRole ( 'superadmin' ) ) return redirect ( ) -> route ( 'player.index' ) ; return view ( 'player.create' ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .