@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('roles', function (Blueprint $table) { |
|
16 | + Schema::table('roles', function(Blueprint $table) { |
|
17 | 17 | $table->string('redirect')->default('dashboard')->after('guard_name'); |
18 | 18 | }); |
19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function down() |
27 | 27 | { |
28 | - Schema::table('roles', function (Blueprint $table) { |
|
28 | + Schema::table('roles', function(Blueprint $table) { |
|
29 | 29 | $table->dropColumn('redirect'); |
30 | 30 | }); |
31 | 31 | } |
@@ -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); |
@@ -53,13 +53,13 @@ discard block |
||
53 | 53 | { |
54 | 54 | $this->app['App\User'] = $this->app['Chuckbe\Chuckcms\Models\User']; |
55 | 55 | |
56 | - $this->loadViewsFrom(__DIR__.'/views', 'chuckcms'); |
|
56 | + $this->loadViewsFrom(__DIR__ . '/views', 'chuckcms'); |
|
57 | 57 | // publish error views + publish updated lfm views |
58 | 58 | |
59 | - $this->mergeConfigFrom(__DIR__.'/../config/chuckcms.php', 'chuckcms'); |
|
60 | - $this->mergeConfigFrom(__DIR__.'/../config/menu.php', 'menu'); |
|
61 | - $this->mergeConfigFrom(__DIR__.'/../config/lfm.php', 'lfm'); |
|
62 | - $this->mergeConfigFrom(__DIR__.'/../config/lang.php', 'lang'); |
|
59 | + $this->mergeConfigFrom(__DIR__ . '/../config/chuckcms.php', 'chuckcms'); |
|
60 | + $this->mergeConfigFrom(__DIR__ . '/../config/menu.php', 'menu'); |
|
61 | + $this->mergeConfigFrom(__DIR__ . '/../config/lfm.php', 'lfm'); |
|
62 | + $this->mergeConfigFrom(__DIR__ . '/../config/lang.php', 'lang'); |
|
63 | 63 | |
64 | 64 | $this->app->register('Chuckbe\Chuckcms\Providers\ChuckSiteServiceProvider'); |
65 | 65 | $this->app->register('Chuckbe\Chuckcms\Providers\ChuckTemplateServiceProvider'); |
@@ -88,14 +88,14 @@ discard block |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | $this->publishes([ |
91 | - __DIR__.'/resources' => public_path('chuckbe/chuckcms'), |
|
91 | + __DIR__ . '/resources' => public_path('chuckbe/chuckcms'), |
|
92 | 92 | ], 'chuckcms-public'); |
93 | 93 | |
94 | 94 | $this->publishes([ |
95 | - __DIR__.'/../config/chuckcms.php' => config_path('chuckcms.php'), |
|
96 | - __DIR__.'/../config/menu.php' => config_path('menu.php'), |
|
97 | - __DIR__.'/../config/lfm.php' => config_path('lfm.php'), |
|
98 | - __DIR__.'/../config/lang.php' => config_path('lang.php'), |
|
95 | + __DIR__ . '/../config/chuckcms.php' => config_path('chuckcms.php'), |
|
96 | + __DIR__ . '/../config/menu.php' => config_path('menu.php'), |
|
97 | + __DIR__ . '/../config/lfm.php' => config_path('lfm.php'), |
|
98 | + __DIR__ . '/../config/lang.php' => config_path('lang.php'), |
|
99 | 99 | ], 'chuckcms-config'); |
100 | 100 | } |
101 | 101 | |
@@ -110,11 +110,11 @@ discard block |
||
110 | 110 | |
111 | 111 | $filesystem = $this->app->make(Filesystem::class); |
112 | 112 | |
113 | - return Collection::make($this->app->databasePath().DIRECTORY_SEPARATOR.'migrations'.DIRECTORY_SEPARATOR) |
|
114 | - ->flatMap(function ($path) use ($filesystem, $migrationFileName) { |
|
115 | - return $filesystem->glob($path.'*_'.$migrationFileName); |
|
113 | + return Collection::make($this->app->databasePath() . DIRECTORY_SEPARATOR . 'migrations' . DIRECTORY_SEPARATOR) |
|
114 | + ->flatMap(function($path) use ($filesystem, $migrationFileName) { |
|
115 | + return $filesystem->glob($path . '*_' . $migrationFileName); |
|
116 | 116 | }) |
117 | - ->push($this->app->databasePath()."/migrations/{$timestamp}_{$migrationFileName}") |
|
117 | + ->push($this->app->databasePath() . "/migrations/{$timestamp}_{$migrationFileName}") |
|
118 | 118 | ->first(); |
119 | 119 | } |
120 | 120 | } |