Support the ongoing development of Laravel.io →

kevinorriss

Joined 4 Jun 2016

Statistics

Threads 1
Replies 4
Solutions 0
Articles 0

middleware in constructor of packaged controller does not work

Hi, So I have a controller in a package I created which deals with some resource, I created the cont...

0 Likes
6 Replies
replied 7 years ago

middleware in constructor of packaged controller does not work

Indeed, though this doesn't explain why the middleware is not loaded when the middleware is specifie...

0 Likes
replied 7 years ago

middleware in constructor of packaged controller does not work

Also, just to confirm, I changed to this and it works fine: Route::group(['middleware' => ['web',...

0 Likes
replied 7 years ago

middleware in constructor of packaged controller does not work

This is the line in my package route file: Route::resource('role_groups', 'KevinOrriss\UserRoles\Con...

0 Likes
replied 7 years ago

5.2: Ajax Auth not picking up session?

Just add the web middleware to your route entry like this: Route::get('/file', 'FileController@creat...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.