@@ -53,13 +53,13 @@ discard block |
||
| 53 | 53 | __DIR__.'/CBCoreModule/publieshed_files/readme.txt' => resource_path('views/vendor/crudbooster/type_components/readme.txt'), |
| 54 | 54 | ], 'cb_type_components'); |
| 55 | 55 | |
| 56 | - if (! file_exists(app_path('Http/Controllers/AdminUsersController.php'))) { |
|
| 56 | + if (!file_exists(app_path('Http/Controllers/AdminUsersController.php'))) { |
|
| 57 | 57 | $this->publishes([__DIR__.'/CBCoreModule/publieshed_files/AdminUsersController.php' => app_path('Http/Controllers/AdminUsersController.php')], 'cb_user_controller'); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | |
| 61 | 61 | $this->defineValidationRules(); |
| 62 | - $this->loadRoutesFrom( __DIR__.'/routes.php'); |
|
| 62 | + $this->loadRoutesFrom(__DIR__.'/routes.php'); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | { |
| 72 | 72 | $this->mergeConfigFrom(__DIR__.'/configs/crudbooster.php', 'crudbooster'); |
| 73 | 73 | |
| 74 | - $this->app->singleton('crudbooster', function () { |
|
| 74 | + $this->app->singleton('crudbooster', function() { |
|
| 75 | 75 | return true; |
| 76 | 76 | }); |
| 77 | 77 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | private function defineValidationRules() |
| 106 | 106 | { |
| 107 | - \Validator::extend('alpha_spaces', function ($attribute, $value) { |
|
| 107 | + \Validator::extend('alpha_spaces', function($attribute, $value) { |
|
| 108 | 108 | // This will only accept alpha and spaces. |
| 109 | 109 | // If you want to accept hyphens use: /^[\pL\s-]+$/u. |
| 110 | 110 | return preg_match('/^[\pL\s]+$/u', $value); |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | private function defineAuthGuard() |
| 115 | 115 | { |
| 116 | - config()->offsetSet('auth.providers.cb_users', ['driver' => 'eloquent', 'model' => CbUser::class,]); |
|
| 116 | + config()->offsetSet('auth.providers.cb_users', ['driver' => 'eloquent', 'model' => CbUser::class, ]); |
|
| 117 | 117 | config()->offsetSet('auth.guards.cbAdmin', ['driver' => 'session', 'provider' => 'cb_users']); |
| 118 | 118 | } |
| 119 | 119 | |