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

Any thought?

Last updated 2 years ago.
0

Finally I found the solution below as a less ressource consuming alternative:

Route::get('{slug}', array(function($slug) {
    return View::make('content')
               ->with('content', Article::where('slug', $slug)->first())
               ->with('menu', $hc->menu)
               ->with('isHome', false);
}))->where('slug', '^((?!admin).)*$');
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

edubuc edubuc Joined 17 May 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.