@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use Afrittella\BackProject\Services\BackProject; |
| 11 | 11 | use Afrittella\BackProject\Services\SlugGenerator; |
| 12 | 12 | use Illuminate\Support\ServiceProvider; |
| 13 | -use Illuminate\Routing\Router; |
|
| 14 | 13 | use function Symfony\Component\HttpKernel\Tests\controller_func; |
| 15 | 14 | |
| 16 | 15 | |
@@ -37,13 +37,13 @@ discard block |
||
| 37 | 37 | // - first the published views (in case they have any changes) |
| 38 | 38 | $this->loadViewsFrom(resource_path('views/vendor/back-project/base'), 'back-project'); |
| 39 | 39 | // - then the stock views that come with the package, in case a published view might be missing |
| 40 | - $this->loadViewsFrom(__DIR__ . '/../resources/views', 'back-project'); |
|
| 40 | + $this->loadViewsFrom(__DIR__.'/../resources/views', 'back-project'); |
|
| 41 | 41 | // Load Translations |
| 42 | - $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'back-project'); |
|
| 42 | + $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'back-project'); |
|
| 43 | 43 | |
| 44 | 44 | // use the vendor configuration file as fallback |
| 45 | 45 | $this->mergeConfigFrom( |
| 46 | - __DIR__ . '/../config/config.php', 'back-project' |
|
| 46 | + __DIR__.'/../config/config.php', 'back-project' |
|
| 47 | 47 | ); |
| 48 | 48 | |
| 49 | 49 | $this->routes(); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | public function register() |
| 64 | 64 | { |
| 65 | - $this->app->singleton('media-manager', function ($app) { |
|
| 65 | + $this->app->singleton('media-manager', function($app) { |
|
| 66 | 66 | return new MediaManager(); |
| 67 | 67 | }); |
| 68 | 68 | |
@@ -105,15 +105,15 @@ discard block |
||
| 105 | 105 | public function publishFiles() |
| 106 | 106 | { |
| 107 | 107 | // publish config file |
| 108 | - $this->publishes([__DIR__ . '/../config/config.php' => config_path() . '/back-project.php'], 'config'); |
|
| 108 | + $this->publishes([__DIR__.'/../config/config.php' => config_path().'/back-project.php'], 'config'); |
|
| 109 | 109 | // publish lang files |
| 110 | - $this->publishes([__DIR__ . '/../resources/lang' => resource_path('lang/vendor/back-project')], 'lang'); |
|
| 110 | + $this->publishes([__DIR__.'/../resources/lang' => resource_path('lang/vendor/back-project')], 'lang'); |
|
| 111 | 111 | // publish public BackProject assets |
| 112 | - $this->publishes([__DIR__ . '/../public' => public_path('vendor/back-project')], 'public'); |
|
| 112 | + $this->publishes([__DIR__.'/../public' => public_path('vendor/back-project')], 'public'); |
|
| 113 | 113 | // publish views |
| 114 | - $this->publishes([__DIR__ . '/../resources/views' => resource_path('views/vendor/back-project')], 'views'); |
|
| 114 | + $this->publishes([__DIR__.'/../resources/views' => resource_path('views/vendor/back-project')], 'views'); |
|
| 115 | 115 | // publish error views |
| 116 | - $this->publishes([__DIR__ . '/../resources/error_views' => resource_path('views/errors')], 'errors'); |
|
| 116 | + $this->publishes([__DIR__.'/../resources/error_views' => resource_path('views/errors')], 'errors'); |
|
| 117 | 117 | // publish public AdminLTE assets |
| 118 | 118 | $this->publishes(['vendor/almasaeed2010/adminlte/bootstrap' => public_path('vendor/adminlte/bootstrap')], 'adminlte'); |
| 119 | 119 | $this->publishes(['vendor/almasaeed2010/adminlte/dist' => public_path('vendor/adminlte/dist')], 'adminlte'); |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | //$router->aliasMiddleware('guest', \Afrittella\BackProject\Http\Middleware\RedirectIfAuthenticated::class); |
| 130 | 130 | $router->aliasMiddleware('role', \Afrittella\BackProject\Http\Middleware\Role::class); |
| 131 | 131 | |
| 132 | - $this->loadRoutesFrom(__DIR__ . '/../routes/web.php'); |
|
| 132 | + $this->loadRoutesFrom(__DIR__.'/../routes/web.php'); |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | public function handleMigrations() |
@@ -139,8 +139,8 @@ discard block |
||
| 139 | 139 | $timestamp = date('Y_m_d_His', time()); |
| 140 | 140 | |
| 141 | 141 | $this->publishes([ |
| 142 | - __DIR__ . '/../database/migrations/' . $file . '.php' => |
|
| 143 | - database_path('migrations/' . $timestamp . '_' . $file . '.php') |
|
| 142 | + __DIR__.'/../database/migrations/'.$file.'.php' => |
|
| 143 | + database_path('migrations/'.$timestamp.'_'.$file.'.php') |
|
| 144 | 144 | ], 'migrations'); |
| 145 | 145 | } |
| 146 | 146 | } |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | public function loadHelpers() |
| 181 | 181 | { |
| 182 | 182 | foreach ($this->helpers as $helper): |
| 183 | - $file = __DIR__ . '/Helpers/' . $helper . '.php'; |
|
| 183 | + $file = __DIR__.'/Helpers/'.$helper.'.php'; |
|
| 184 | 184 | |
| 185 | 185 | if (file_exists($file)) { |
| 186 | 186 | require_once($file); |