File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 4444 "extra" : {
4545 "laravel" : {
4646 "providers" : [
47- " GnaHotelSolutions\\ LaravelTrailingSlash\\ LaravelTrailingSlashServiceProvider"
47+ " GnaHotelSolutions\\ LaravelTrailingSlash\\ Providers \\ LaravelTrailingSlashServiceProvider"
4848 ]
4949 }
5050 }
Original file line number Diff line number Diff line change 11<?php
22
3- namespace GnaHotelSolutions \LaravelTrailingSlash \ Providers ;
3+ namespace GnaHotelSolutions \LaravelTrailingSlash ;
44
5- use GnaHotelSolutions \LaravelTrailingSlash \Library \TrailingSlashUrlGenerator ;
5+ use GnaHotelSolutions \LaravelTrailingSlash \Routing \TrailingSlashUrlGenerator ;
66use Illuminate \Contracts \Routing \UrlGenerator ;
77use Illuminate \Support \ServiceProvider ;
88
9- class RoutingServiceProvider extends ServiceProvider
9+ class LaravelTrailingSlashServiceProvider extends ServiceProvider
1010{
11+ public function boot ()
12+ {
13+ if ($ this ->app ->runningInConsole ()) {
14+ $ this ->publishes ([
15+ __DIR__ . '/../config/config.php ' => config_path ('laravel-trailing-slash.php ' ),
16+ ], 'config ' );
17+ }
18+ }
19+
1120 public function register ()
1221 {
22+ $ this ->mergeConfigFrom (__DIR__ . '/../config/config.php ' , 'laravel-trailing-slash ' );
23+
1324 $ this ->app ->singleton ('url ' , function ($ app ) {
1425 $ routes = $ app ['router ' ]->getRoutes ();
1526
You can’t perform that action at this time.
0 commit comments