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

how about

Route::controller('sessions', 'SessionsController');
Last updated 2 years ago.
0

keithwhyman said:

how about

Route::controller('sessions', 'SessionsController');

This is not "named". If I changed "sessions" to "sess" for example I would have to change every link that points to "sessions".

Last updated 2 years ago.
0

Yup, it's possible. Last time I tried it, an additional dot was then added to each resource route, so you'd end up with something like this:

test..sessions.store

Not very elegant and I only needed it for one resource, so I named all of them instead. Check it out with art routes, though. Might have changed.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jjosephs jjosephs Joined 14 Apr 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.