app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Show the application dashboard.
@return \Illuminate\Contracts\Support\Renderable
Show the application dashboard . @return \ Illuminate \ Contracts \ Support \ Renderable
public function index(Request $request)
    {
        $request->user()->authorizeRoles(['admin','utp','profesor','usuario',]);
        return view('home');
    }
public function index ( Request $ request ) { $ request -> user ( ) -> authorizeRoles ( [ 'admin' , 'utp' , 'profesor' , 'usuario' , ] ) ; return view ( 'home' ) ; }
Show the application dashboard.
Show the application dashboard .