Laravel Route Pattern For Whole Word - developed.be

  • Published:September 18th, 2015
  • Category:Lavarel

Use the underneath snippet if you want to match an entire word in a route pattern for Laravel.

Route::pattern('my_word_pattern', '^myword$');
Route::get('{my_word_pattern}/...


Rss Comments

Comments

No comments yet.

Leave a comment