Support the ongoing development of Laravel.io →
posted 9 years ago
Requests
Last updated 2 years ago.
0

I dont think it can be done out of the box. But I can think of three ways/workarounds how to do this.

  1. Do not use Route::resource and write the routes separately. That way you can specify the filter for each route.
  2. Write the route for store method separately and move it above the code you pasted.
  3. Write your own filter with desired conditionals for methods, auth status, etc...
Last updated 2 years ago.
0

ok i used the 1. solution and it works like a charm ;-) thank you

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ocraton ocraton Joined 18 Mar 2014

Moderators

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.