dyaa
8/9/2013 - 3:12 PM

Laravel 4 :route with a regex From http://paste.laravel.com/HXK

Laravel 4 :route with a regex From http://paste.laravel.com/HXK

Route::get('blog/{slug}', function($slug) {
  return View::make('hello'); 
  
})->where('slug', '[a-zA-Z0-9]+');