From ca6b7b3aaffd6f61025d2191623bdf0df82244d8 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Wed, 30 Apr 2025 12:43:59 +0300 Subject: [PATCH] The removal of `Application.php` was canceled --- README.md | 4 +++- src/Application.php | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/Application.php diff --git a/README.md b/README.md index bbec93c..969e897 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,9 @@ To get the latest version of `Laravel Route Names`, simply require the project u composer require dragon-code/laravel-route-names ``` -Next, you can now list the routes, for example by calling the `php artisan route:list` command or by using +Next, replace `Illuminate\Foundation\Application` with `DragonCode\LaravelRouteNames\Application` in the `bootstrap/app.php` file. + +You can now list the routes, for example by calling the `php artisan route:list` command or by using the [`dragon-code/pretty-routes`](https://github.com/TheDragonCode/pretty-routes) package. ## Using diff --git a/src/Application.php b/src/Application.php new file mode 100644 index 0000000..b666a3a --- /dev/null +++ b/src/Application.php @@ -0,0 +1,18 @@ +register(new EventServiceProvider($this)); + $this->register(new LogServiceProvider($this)); + $this->register(new RoutingServiceProvider($this)); + } +}