Route::controller(TourOrderController::class)->group(function () {
Route::get('confirm', 'view')
->name('order.confirm')
->breadcrumbs(fn(Trail $trail, $uuid) => $trail->parent('order.form', $uuid)
->push(__('crumbs.order_data_validation'), route('order.confirm', $uuid)));
Route::post('confirm', 'complete');
});
// Route::get('confirm', [TourOrderController::class, 'view'])
// ->name('order.confirm')
// ->breadcrumbs(fn(Trail $trail, $uuid) => $trail->parent('order.form', $uuid)
// ->push(__('crumbs.order_data_validation'), route('order.confirm', $uuid)));
// Route::post('confirm', [TourOrderController::class, 'complete']);
Route::group(['namespace' => 'App\\Http\\Controllers\\Post'], function () {
Route::get('/posts', 'IndexController')->name('post.index');
Route::get('/posts/create', 'CreateController')->name('post.create');
});
Route::get('/home', 'App\\Http\\Controllers\\HomeController@index');
Строка в этом плане лучше, т.к. подгрузка класса произойдет только в момент когда будет резолвится Route::namespace().