lets say l have a route pointing to middleware;
Route::get("/user/{id}", ['middleware' => 'auth', function ($id) {
}]);
and my middleware code is as follows:
public function handle($request, Closure $next) { return $next($request); }
if l want to use $id in the middleware, how do l do that?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire