Commit

19bffdf

The structure I wrote is also correct; in Laravel, the group() method passes a Router instance to the closure, so this code is valid.
php
Route::controller(LineHaulController::class)->group(static function ($router): void {
    $router->prefix('linehaul')->group(static function ($router): void {
        $router->get('/countries', 'countries');
        $router->get('/manifest/{mawb}', 'manifest');
        $router->put('/{uuid}/update', 'update');
        $router->get('/{destination}', 'parcels');
    });
});
QuotingMKMohammed Samgan Khan@msamgan
i prefer grouped by controllers.…

commit 19bffdf