@@ -55,13 +55,13 @@ discard block |
||
| 55 | 55 | __DIR__.'/CBCoreModule/publieshed_files/readme.txt' => resource_path('views/vendor/crudbooster/type_components/readme.txt'), |
| 56 | 56 | ], 'cb_type_components'); |
| 57 | 57 | |
| 58 | - if (! file_exists(app_path('Http/Controllers/AdminUsersController.php'))) { |
|
| 58 | + if (!file_exists(app_path('Http/Controllers/AdminUsersController.php'))) { |
|
| 59 | 59 | $this->publishes([__DIR__.'/CBCoreModule/publieshed_files/AdminUsersController.php' => app_path('Http/Controllers/AdminUsersController.php')], 'cb_user_controller'); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | |
| 63 | 63 | $this->defineValidationRules(); |
| 64 | - $this->loadRoutesFrom( __DIR__.'/routes.php'); |
|
| 64 | + $this->loadRoutesFrom(__DIR__.'/routes.php'); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | { |
| 74 | 74 | $this->mergeConfigFrom(__DIR__.'/configs/crudbooster.php', 'crudbooster'); |
| 75 | 75 | |
| 76 | - $this->app->singleton('crudbooster', function () { |
|
| 76 | + $this->app->singleton('crudbooster', function() { |
|
| 77 | 77 | return true; |
| 78 | 78 | }); |
| 79 | 79 | |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | private function defineValidationRules() |
| 114 | 114 | { |
| 115 | - \Validator::extend('alpha_spaces', function ($attribute, $value) { |
|
| 115 | + \Validator::extend('alpha_spaces', function($attribute, $value) { |
|
| 116 | 116 | // This will only accept alpha and spaces. |
| 117 | 117 | // If you want to accept hyphens use: /^[\pL\s-]+$/u. |
| 118 | 118 | return preg_match('/^[\pL\s]+$/u', $value); |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | |
| 122 | 122 | private function defineAuthGuard() |
| 123 | 123 | { |
| 124 | - config()->offsetSet('auth.providers.cb_users', ['driver' => 'eloquent', 'model' => CbUser::class,]); |
|
| 124 | + config()->offsetSet('auth.providers.cb_users', ['driver' => 'eloquent', 'model' => CbUser::class, ]); |
|
| 125 | 125 | config()->offsetSet('auth.guards.cbAdmin', ['driver' => 'session', 'provider' => 'cb_users']); |
| 126 | 126 | } |
| 127 | 127 | } |
@@ -5,42 +5,42 @@ |
||
| 5 | 5 | |
| 6 | 6 | class CreateCmsApicustomTable extends Migration { |
| 7 | 7 | |
| 8 | - /** |
|
| 9 | - * Run the migrations. |
|
| 10 | - * |
|
| 11 | - * @return void |
|
| 12 | - */ |
|
| 13 | - public function up() |
|
| 14 | - { |
|
| 15 | - Schema::create('cms_apicustom', function(Blueprint $table) |
|
| 16 | - { |
|
| 17 | - $table->increments('id'); |
|
| 18 | - $table->string('permalink')->nullable(); |
|
| 19 | - $table->string('tabel', 50)->nullable(); |
|
| 20 | - $table->string('aksi')->nullable(); |
|
| 21 | - $table->string('kolom', 50)->nullable(); |
|
| 22 | - $table->string('orderby')->nullable(); |
|
| 23 | - $table->string('sub_query_1')->nullable(); |
|
| 24 | - $table->string('sql_where')->nullable(); |
|
| 25 | - $table->string('name')->nullable(); |
|
| 26 | - $table->string('keterangan')->nullable(); |
|
| 27 | - $table->string('parameter')->nullable(); |
|
| 28 | - $table->timestamps(); |
|
| 29 | - $table->string('method_type', 25)->nullable(); |
|
| 30 | - $table->text('parameters')->nullable(); |
|
| 31 | - $table->text('responses')->nullable(); |
|
| 32 | - }); |
|
| 33 | - } |
|
| 8 | + /** |
|
| 9 | + * Run the migrations. |
|
| 10 | + * |
|
| 11 | + * @return void |
|
| 12 | + */ |
|
| 13 | + public function up() |
|
| 14 | + { |
|
| 15 | + Schema::create('cms_apicustom', function(Blueprint $table) |
|
| 16 | + { |
|
| 17 | + $table->increments('id'); |
|
| 18 | + $table->string('permalink')->nullable(); |
|
| 19 | + $table->string('tabel', 50)->nullable(); |
|
| 20 | + $table->string('aksi')->nullable(); |
|
| 21 | + $table->string('kolom', 50)->nullable(); |
|
| 22 | + $table->string('orderby')->nullable(); |
|
| 23 | + $table->string('sub_query_1')->nullable(); |
|
| 24 | + $table->string('sql_where')->nullable(); |
|
| 25 | + $table->string('name')->nullable(); |
|
| 26 | + $table->string('keterangan')->nullable(); |
|
| 27 | + $table->string('parameter')->nullable(); |
|
| 28 | + $table->timestamps(); |
|
| 29 | + $table->string('method_type', 25)->nullable(); |
|
| 30 | + $table->text('parameters')->nullable(); |
|
| 31 | + $table->text('responses')->nullable(); |
|
| 32 | + }); |
|
| 33 | + } |
|
| 34 | 34 | |
| 35 | 35 | |
| 36 | - /** |
|
| 37 | - * Reverse the migrations. |
|
| 38 | - * |
|
| 39 | - * @return void |
|
| 40 | - */ |
|
| 41 | - public function down() |
|
| 42 | - { |
|
| 43 | - Schema::drop('cms_apicustom'); |
|
| 44 | - } |
|
| 36 | + /** |
|
| 37 | + * Reverse the migrations. |
|
| 38 | + * |
|
| 39 | + * @return void |
|
| 40 | + */ |
|
| 41 | + public function down() |
|
| 42 | + { |
|
| 43 | + Schema::drop('cms_apicustom'); |
|
| 44 | + } |
|
| 45 | 45 | |
| 46 | 46 | } |