-
Hello , is it possible to pass the guard name to the middleware ? Route::group(['middleware' => ['permission:publish-articles']], function () {
//
});
Route::middleware('permission:publish-articles,web')->group(function () {
//
}); Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
drbyte
Aug 21, 2023
Replies: 1 comment 4 replies
-
Yes. How many guards do you have in your application?
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes you may pass the guard, as
,web
like in your example.