laravel route() with parameters code example
Example 1: laravel route match
Route::match(['get', 'post'], '/', function () {
//
});
Route::any('/', function () {
//
});
Example 2: set route name laravel
Route::get('/novanoticia', 'HomeController@getNovaNoticia')->name('route_name');
Example 3: laravel route
Route::get('posts/{post}/comments/{comment}', function ($postId, $commentId) {
//
});