Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Bhargav960143's avatar

@MUNAZZIL - No problem but before going to the store method its request going to middleware so here it is not an issue.

newpipe's avatar

I would like to test them and get back to here and say what's wrong or if anything to edit or change. Thanks BTW. newpipe apps

usaandi's avatar

@bhargav960143 can't you group your route to middleware?

like this

Route::group(['middleware' => 'App\Http\Middleware\authpermission'], function () {
    Route::resource('post', 'PostController');
});
usaandi's avatar

@bhargav960143 I suggest you to xdebug your middleware. Add some breakpoints and see where/when your route turns to null

munazzil's avatar

I think route should be as like below.

      Route::resource('post', 'admin/PostController');
munazzil's avatar

Have you used as like below.

              Route::resource('/post', 'PostController');

Can you show full list

           php artisan route:list
Majki's avatar

Why do you have

POST post/store 

route if default from resource is

POST post 

?

Previous

Please or to participate in this conversation.