lundi 15 novembre 2021

Route does not find variable

i need to pass a variable $empresa to my route, but it can't find it.

find the route only as ( / )

Route::get('/', function() {
    if (Auth::guest()) {
        return redirect('/home');
    }
    else {
    
        $empresa = Auth::user()->empresa;
                    return redirect('/' .$empresa);
    }    
});

I only get this problem in web.php file help please



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2YTztgq
via IFTTT

Aucun commentaire:

Enregistrer un commentaire