Tuesday, June 8, 2021

Laravel Route Parameters With Slash



Route::get ( '/routepath/{param?}', [
'as' => 'routepath',
'uses' => 'MyAddController@myAdd'
] )->where('param', '[A-Za-z0-9_/-]+');

* param can contain value with slash

No comments:

Post a Comment