Level 1
Artisan::call($command, $params);
$output = Artisan::output();
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I want to pass all laravel routes to vue using array or json. How can i get laravel routes as array or json?
$routes = collect(\Route::getRoutes())->map(function ($route) { return $route->uri(); })
Please or to participate in this conversation.