Answers for "how count the rout in route.php laravel"

PHP
1

how count the rout in route.php laravel

return collect(Route::getRoutes())
    ->reject(function ($item) {
        return starts_with($item->uri, 'horizon');
    })
    ->reject(function ($item) {
        return starts_with($item->uri, 'nova');
    })
    ->reject(function ($item) {
        return starts_with($item->uri, '__clockwork');
    })
    ->reject(function ($item) {
        return starts_with($item->uri, 'themsaid');
    })
    ->pluck('uri')
    ->count();
Posted by: Guest on April-05-2022

Browse Popular Code Answers by Language