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).)*$');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community