[laravel] use 'OR' middleware for route (2 roles or~)

To allow both roles to access the API using the OR logic, you can use the middleware('restrictRole:admin,admin2') method.

留言

此網誌的熱門文章

《Clean Code 2: Vue 3 檔案/資料夾結構》

[Laravel][ATOMIC] DB::transaction, DB::beginTransaction

[laravel 9] rename project