@@ -4,7 +4,7 @@ |
||
4 | 4 | interface CBHook { |
5 | 5 | |
6 | 6 | public function hookGetLogin(); |
7 | - public function hookPostLogin(); |
|
8 | - public function beforeBackendMiddleware($request); |
|
7 | + public function hookPostLogin(); |
|
8 | + public function beforeBackendMiddleware($request); |
|
9 | 9 | public function afterBackendMiddleware($request, $response); |
10 | 10 | } |
11 | 11 | \ No newline at end of file |
@@ -24,11 +24,11 @@ discard block |
||
24 | 24 | $this->loadViewsFrom(__DIR__.'/types', 'types'); |
25 | 25 | |
26 | 26 | // Publish the files |
27 | - $this->publishes([__DIR__.'/configs/crudbooster.php' => config_path('crudbooster.php')],'cb_config'); |
|
27 | + $this->publishes([__DIR__.'/configs/crudbooster.php' => config_path('crudbooster.php')], 'cb_config'); |
|
28 | 28 | $this->publishes([__DIR__.'/localization' => resource_path('lang')], 'cb_localization'); |
29 | - $this->publishes([__DIR__.'/database' => base_path('database')],'cb_migration'); |
|
30 | - $this->publishes([__DIR__.'/templates/CBHook.stub'=> app_path('Http/CBHook.php')],'cb_hook'); |
|
31 | - $this->publishes([__DIR__ . '/assets' =>public_path('cb_asset')],'cb_asset'); |
|
29 | + $this->publishes([__DIR__.'/database' => base_path('database')], 'cb_migration'); |
|
30 | + $this->publishes([__DIR__.'/templates/CBHook.stub'=> app_path('Http/CBHook.php')], 'cb_hook'); |
|
31 | + $this->publishes([__DIR__.'/assets' =>public_path('cb_asset')], 'cb_asset'); |
|
32 | 32 | |
33 | 33 | require __DIR__.'/validations/validation.php'; |
34 | 34 | require __DIR__.'/routes.php'; |
@@ -44,14 +44,14 @@ discard block |
||
44 | 44 | require __DIR__.'/helpers/Helper.php'; |
45 | 45 | |
46 | 46 | // Singletons |
47 | - $this->app->singleton('crudbooster', function () |
|
47 | + $this->app->singleton('crudbooster', function() |
|
48 | 48 | { |
49 | 49 | return true; |
50 | 50 | }); |
51 | 51 | $this->app->singleton('ColumnSingleton', ColumnSingleton::class); |
52 | 52 | |
53 | 53 | // Merging configuration |
54 | - $this->mergeConfigFrom(__DIR__.'/configs/crudbooster.php','crudbooster'); |
|
54 | + $this->mergeConfigFrom(__DIR__.'/configs/crudbooster.php', 'crudbooster'); |
|
55 | 55 | |
56 | 56 | |
57 | 57 | // Register Commands |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('cb_role_privileges', function (Blueprint $table) { |
|
15 | + Schema::create('cb_role_privileges', function(Blueprint $table) { |
|
16 | 16 | $table->increments("id"); |
17 | 17 | $table->integer("cb_roles_id"); |
18 | 18 | $table->integer("cb_menus_id"); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('cb_roles', function (Blueprint $table) { |
|
15 | + Schema::create('cb_roles', function(Blueprint $table) { |
|
16 | 16 | $table->increments("id"); |
17 | 17 | $table->string('name'); |
18 | 18 | }); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('cb_modules', function (Blueprint $table) { |
|
15 | + Schema::create('cb_modules', function(Blueprint $table) { |
|
16 | 16 | $table->increments("id"); |
17 | 17 | $table->string('name'); |
18 | 18 | $table->string("icon"); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('cb_menus', function (Blueprint $table) { |
|
15 | + Schema::create('cb_menus', function(Blueprint $table) { |
|
16 | 16 | $table->increments("id"); |
17 | 17 | $table->string('name'); |
18 | 18 | $table->string("icon"); |