samedi 6 mai 2017

go to my route after authentication when I use middleware in laravel

I have this route in web.php (laravel 5.4)

Route::get('/sample', function (App\User $user) {
    return "inja sampleee";
})->middleware('auth:api');

I want after when user enter /sample path in browser Beginning login user then show massage "this is sampleee". but by this code after authentication go to the way that define in handle methods Middleware. how can return to what I want in my route that define in my route.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire