Closed haruhinoshana closed 6 years ago
Hi!
Just enclose it in curly brackets like {this}
Route::get('author/{slug}', ['uses' => 'blog@author', 'as' => 'posts-by-author']);
// {slug} => (:any)
Available parameters definitions:
// 1. Anything
// {any: [name]} or simply:
// {[name]}
// Example: {any:foo}, {foo}
// 2. Numeric
// {num:[name]}
// Example: {num:bar}
// 3. Custom regex
// {[regex]:[name]}
// Example: '{([0-9]{4}):year}/{([0-9]{2}):month}/{([0-9]{2}):day}'
@andersonsalas please add this in the documentation!
@robertsanseries that syntax was changed a little bit since the issue date. The current syntax is described in the readme.md
file, and the complete documentation can be founded here (english) and here (spanish)
hi sir can i ask how to make a route on get with parameter like ex: welcome/(:any)
thank you