Summer Sale! All accounts are 50% off this week.

GodziLaravel's avatar

Route with middleware AND session

hello , this is the route : Route::resource('/company', 'companyController')->middleware('auth'); after login I create Session('role') this one takes two values : "company" or "driver" I want to add to the Middleware another condition of session('role') thanks

0 likes
1 reply

Please or to participate in this conversation.