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

Thanks to coderego from the IRC channel. Solution is simple:

Route::get('/{slug}', 'Controller@show');
Route::resource('/admin/sites', 'Controller',
            ['except' => ['show']]);
Last updated 2 years ago.
0

There is another way you could do as, Route::get('/{slug}', ['as' => 'site.show', 'uses' => 'SiteController' ]);

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Albert221 albert221 Joined 13 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.