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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire