Comments (4)
You can use Grouping to apply multiple middleware on routes..
ex:
Route::middleware(['first', 'second'])->group(function () {
Route::get('/', function () {
// Uses first & second Middleware
});
Route::get('user/profile', function () {
// Uses first & second Middleware
});
});
Reference link: https://laravel.com/docs/5.8/routing#route-group-middleware
from laravel-multiauth.
i have 3 role (super, admin and manager)
i am testing like this but not working
Route::middleware(['role:manager','role:admin'])->group(function () {
//routes
});
from laravel-multiauth.
You can use Grouping to apply multiple middleware on routes..
ex:Route::middleware(['first', 'second'])->group(function () { Route::get('/', function () { // Uses first & second Middleware }); Route::get('user/profile', function () { // Uses first & second Middleware }); });
Reference link: https://laravel.com/docs/5.8/routing#route-group-middleware
Even this doesnt work
from laravel-multiauth.
New in v3.0.0
:
Now you can use multiauth role and also permissions
I think this solved the issue
from laravel-multiauth.
Related Issues (20)
- Loggin out a type of {guard} logs everything out on same browser HOT 1
- Factory seed not working with laradock HOT 1
- How can I check the role of a logged in admin with if condition HOT 1
- remove roles and permissions HOT 1
- Guard intefering with horizon
- hidden section for a different role issue HOT 1
- Setting own Model - still not fixed HOT 2
- how to set prefix to 'en/admin' HOT 1
- multiauth:make {guard} on laravel 8 not working HOT 1
- Error in ever authenticated request made from super admin HOT 1
- Any update to support laravel v8 HOT 2
- Error In migration HOT 1
- Still cannot assign model version 5.2.0 HOT 4
- When we edit admin user its giving unique email address error HOT 1
- How to use laravel-multiauth with livewire? HOT 1
- Clicking roles not redirected to roles page
- Error when running commands due to package using deprecated Laravel helpers HOT 1
- Undefined variable '$adminModel' in AuthServiceProvider
- factory error while installing in laravel 9 HOT 1
- Dont Work in laravel 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-multiauth.