Level 20
https://laravel.com/docs/5.6/middleware
- Create a new middleware
- Assign it to your route
- Enjoy
Summer Sale! All accounts are 50% off this week.
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
Please or to participate in this conversation.