@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('repeaters', function (Blueprint $table) { |
|
16 | + Schema::create('repeaters', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('slug'); |
19 | 19 | $table->string('url')->nullable()->default(null); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('pages', function (Blueprint $table) { |
|
16 | + Schema::create('pages', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('template_id'); |
19 | 19 | $table->string('page')->nullable()->default(null); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | { |
28 | 28 | $this->doPublishing(); |
29 | 29 | |
30 | - $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
|
30 | + $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); |
|
31 | 31 | |
32 | 32 | $router = $this->app->make(Router::class); |
33 | 33 | $router->aliasMiddleware('role', RoleMiddleware::class); |
@@ -59,14 +59,14 @@ discard block |
||
59 | 59 | // $this->app->make('Chuckbe\Chuckcms\Controllers\Auth\RegisterController'); |
60 | 60 | // $this->app->make('Chuckbe\Chuckcms\Controllers\Auth\ResetPasswordController'); |
61 | 61 | |
62 | - $this->loadViewsFrom(__DIR__.'/views', 'chuckcms'); |
|
62 | + $this->loadViewsFrom(__DIR__ . '/views', 'chuckcms'); |
|
63 | 63 | // publish error views + publish updated lfm views |
64 | 64 | |
65 | 65 | |
66 | - $this->mergeConfigFrom(__DIR__.'/../config/chuckcms.php', 'chuckcms'); |
|
67 | - $this->mergeConfigFrom(__DIR__.'/../config/menu.php', 'menu'); |
|
68 | - $this->mergeConfigFrom(__DIR__.'/../config/lfm.php', 'lfm'); |
|
69 | - $this->mergeConfigFrom(__DIR__.'/../config/lang.php', 'lang'); |
|
66 | + $this->mergeConfigFrom(__DIR__ . '/../config/chuckcms.php', 'chuckcms'); |
|
67 | + $this->mergeConfigFrom(__DIR__ . '/../config/menu.php', 'menu'); |
|
68 | + $this->mergeConfigFrom(__DIR__ . '/../config/lfm.php', 'lfm'); |
|
69 | + $this->mergeConfigFrom(__DIR__ . '/../config/lang.php', 'lang'); |
|
70 | 70 | |
71 | 71 | $this->app->register( |
72 | 72 | 'Chuckbe\Chuckcms\Providers\ChuckSiteServiceProvider' |
@@ -117,14 +117,14 @@ discard block |
||
117 | 117 | } |
118 | 118 | |
119 | 119 | $this->publishes([ |
120 | - __DIR__.'/resources' => public_path('chuckbe/chuckcms'), |
|
120 | + __DIR__ . '/resources' => public_path('chuckbe/chuckcms'), |
|
121 | 121 | ], 'chuckcms-public'); |
122 | 122 | |
123 | 123 | $this->publishes([ |
124 | - __DIR__.'/../config/chuckcms.php' => config_path('chuckcms.php'), |
|
125 | - __DIR__.'/../config/menu.php' => config_path('menu.php'), |
|
126 | - __DIR__.'/../config/lfm.php' => config_path('lfm.php'), |
|
127 | - __DIR__.'/../config/lang.php' => config_path('lang.php'), |
|
124 | + __DIR__ . '/../config/chuckcms.php' => config_path('chuckcms.php'), |
|
125 | + __DIR__ . '/../config/menu.php' => config_path('menu.php'), |
|
126 | + __DIR__ . '/../config/lfm.php' => config_path('lfm.php'), |
|
127 | + __DIR__ . '/../config/lang.php' => config_path('lang.php'), |
|
128 | 128 | ], 'chuckcms-config'); |
129 | 129 | } |
130 | 130 | |
@@ -139,11 +139,11 @@ discard block |
||
139 | 139 | |
140 | 140 | $filesystem = $this->app->make(Filesystem::class); |
141 | 141 | |
142 | - return Collection::make($this->app->databasePath().DIRECTORY_SEPARATOR.'migrations'.DIRECTORY_SEPARATOR) |
|
143 | - ->flatMap(function ($path) use ($filesystem, $migrationFileName) { |
|
144 | - return $filesystem->glob($path.'*_'.$migrationFileName); |
|
142 | + return Collection::make($this->app->databasePath() . DIRECTORY_SEPARATOR . 'migrations' . DIRECTORY_SEPARATOR) |
|
143 | + ->flatMap(function($path) use ($filesystem, $migrationFileName) { |
|
144 | + return $filesystem->glob($path . '*_' . $migrationFileName); |
|
145 | 145 | }) |
146 | - ->push($this->app->databasePath()."/migrations/{$timestamp}_{$migrationFileName}") |
|
146 | + ->push($this->app->databasePath() . "/migrations/{$timestamp}_{$migrationFileName}") |
|
147 | 147 | ->first(); |
148 | 148 | } |
149 | 149 | } |