Support the ongoing development of →
posted 8 years ago
Last updated 10 months ago.

It's not a bug. It's expected behaviour.

You don't say, but I assume you're issuing a GET request to http://yoursite.tld/admin/invoice/settings.

In your first example that satisfies the pattern admin/invoice/{resource} which maps to the show() method. This is explained here in the docs.

In the second example, your custom-defined route is the first match giving the result that you were hoping for.

To avoid this sort of confusion, it's generally best to put your most specific route definitions first.

Last updated 10 months ago.

Thank you peter for the enlightenment.

Last updated 10 months ago.

Sign in to participate in this thread!


Your banner here too?

Sheldonnn sheldonnn Joined 24 Feb 2014


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

Your logo here?

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

© 2023 - All rights reserved.