@@ -27,27 +27,27 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | // Config |
| 29 | 29 | $this->publishes([ |
| 30 | - __DIR__ . '/../../config/uccello.php' => config_path('uccello.php'), |
|
| 30 | + __DIR__.'/../../config/uccello.php' => config_path('uccello.php'), |
|
| 31 | 31 | ], 'config'); |
| 32 | 32 | |
| 33 | 33 | // Views |
| 34 | - $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'uccello'); |
|
| 34 | + $this->loadViewsFrom(__DIR__.'/../../resources/views', 'uccello'); |
|
| 35 | 35 | $this->publishes([ |
| 36 | - __DIR__ . '/../../resources/views' => resource_path('views/vendor/uccello') |
|
| 36 | + __DIR__.'/../../resources/views' => resource_path('views/vendor/uccello') |
|
| 37 | 37 | ], 'views'); |
| 38 | 38 | |
| 39 | 39 | // Publish assets |
| 40 | 40 | $this->publishes([ |
| 41 | - __DIR__ . '/../../public' => public_path('vendor/uccello/uccello'), |
|
| 42 | - __DIR__ . '/../../public/fonts/vendor' => public_path('fonts/vendor'), |
|
| 43 | - __DIR__ . '/../../public/images/vendor' => public_path('images/vendor') |
|
| 41 | + __DIR__.'/../../public' => public_path('vendor/uccello/uccello'), |
|
| 42 | + __DIR__.'/../../public/fonts/vendor' => public_path('fonts/vendor'), |
|
| 43 | + __DIR__.'/../../public/images/vendor' => public_path('images/vendor') |
|
| 44 | 44 | ], 'assets'); |
| 45 | 45 | |
| 46 | 46 | // Translations |
| 47 | - $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'uccello'); |
|
| 47 | + $this->loadTranslationsFrom(__DIR__.'/../../resources/lang', 'uccello'); |
|
| 48 | 48 | |
| 49 | 49 | // Migrations |
| 50 | - $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations'); |
|
| 50 | + $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); |
|
| 51 | 51 | |
| 52 | 52 | // Commands |
| 53 | 53 | if ($this->app->runningInConsole()) { |
@@ -61,12 +61,12 @@ discard block |
||
| 61 | 61 | { |
| 62 | 62 | // Config |
| 63 | 63 | $this->mergeConfigFrom( |
| 64 | - __DIR__ . '/../../config/uccello.php', |
|
| 64 | + __DIR__.'/../../config/uccello.php', |
|
| 65 | 65 | 'uccello' |
| 66 | 66 | ); |
| 67 | 67 | |
| 68 | 68 | // Helper |
| 69 | - App::bind('uccello', function () { |
|
| 69 | + App::bind('uccello', function() { |
|
| 70 | 70 | return new \Uccello\Core\Helpers\Uccello; |
| 71 | 71 | }); |
| 72 | 72 | |
@@ -20,12 +20,12 @@ |
||
| 20 | 20 | parent::boot(); |
| 21 | 21 | |
| 22 | 22 | // Bind domain |
| 23 | - Route::bind('domain', function ($value) { |
|
| 23 | + Route::bind('domain', function($value) { |
|
| 24 | 24 | return Domain::where('slug', $value)->first() ?? abort(404); |
| 25 | 25 | }); |
| 26 | 26 | |
| 27 | 27 | // Bind module |
| 28 | - Route::bind('module', function ($value) { |
|
| 28 | + Route::bind('module', function($value) { |
|
| 29 | 29 | return Module::where('name', $value)->first() ?? abort(404); |
| 30 | 30 | }); |
| 31 | 31 | } |