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()->rolesAutorizados(['Super Administrador','Administrador','Auxiliar','Panadero']);
        return view('home');
    }
public function index ( Request $ request ) { $ request -> user ( ) -> rolesAutorizados ( [ 'Super Administrador' , 'Administrador' , 'Auxiliar' , 'Panadero' ] ) ; return view ( 'home' ) ; }
Show the application dashboard.
Show the application dashboard .
/*if ($request->user()->tieneRole('Admin')) {
            return view('homeAdmin');
        } else if ($request->user()->tieneRole('User')) {
            return view('home');
        }*/