Skip to content

Instantly share code, notes, and snippets.

@dyaa
Created August 9, 2013 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dyaa/6194428 to your computer and use it in GitHub Desktop.
Save dyaa/6194428 to your computer and use it in GitHub Desktop.
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]+');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment