@@ -3,13 +3,13 @@ discard block |
||
| 3 | 3 | use crocodicstudio\crudbooster\CBCoreModule\CbRouter; |
| 4 | 4 | use crocodicstudio\crudbooster\middlewares\CBBackend; |
| 5 | 5 | |
| 6 | -Route::group(['middleware' => ['web']], function () { |
|
| 6 | +Route::group(['middleware' => ['web']], function() { |
|
| 7 | 7 | Route::get(cbAdminPath(), '\crocodicstudio\crudbooster\controllers\DashboardController@index')->name('CbDashboard'); |
| 8 | 8 | }); |
| 9 | 9 | |
| 10 | 10 | $namespace = cbControllersNS(); |
| 11 | 11 | /* ROUTER FOR UPLOADS */ |
| 12 | -Route::group(['middleware' => ['web'], 'namespace' => $namespace], function () { |
|
| 12 | +Route::group(['middleware' => ['web'], 'namespace' => $namespace], function() { |
|
| 13 | 13 | Route::get('uploads/{one?}/{two?}/{three?}/{four?}/{five?}', ['uses' => 'FileController@getPreview', 'as' => 'fileControllerPreview']); |
| 14 | 14 | }); |
| 15 | 15 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | 'middleware' => ['web', CBBackend::class], |
| 19 | 19 | 'prefix' => cbAdminPath(), |
| 20 | 20 | 'namespace' => ctrlNamespace(), |
| 21 | -], function () { |
|
| 21 | +], function() { |
|
| 22 | 22 | CbRouter::routeController('users', 'AdminUsersController'); |
| 23 | 23 | try { |
| 24 | 24 | $modules = DB::table('cms_moduls')->where('path', '!=', '')->where('controller', '!=', '')->where('is_protected', 0)->get(); |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | 'middleware' => ['web', \crocodicstudio\crudbooster\middlewares\CBSuperadmin::class], |
| 36 | 36 | 'prefix' => cbAdminPath(), |
| 37 | 37 | 'namespace' => $namespace, |
| 38 | -], function () { |
|
| 38 | +], function() { |
|
| 39 | 39 | Route::post('{module}/do-upload-import-data', 'FileController@uploadImportData')->name('UploadImportData'); |
| 40 | 40 | Route::post('{module}/upload-summernote', 'FileController@uploadSummernote')->name('UploadImportData'); |
| 41 | 41 | Route::post('{module}/upload-file', 'FileController@uploadFile')->name('UploadImportData'); |
@@ -149,7 +149,7 @@ |
||
| 149 | 149 | protected function genericLoader() |
| 150 | 150 | { |
| 151 | 151 | $this->cbInit(); |
| 152 | - $this->primaryKey = $this->primaryKey?: DbInspector::findPk($this->table); |
|
| 152 | + $this->primaryKey = $this->primaryKey ?: DbInspector::findPk($this->table); |
|
| 153 | 153 | $this->data_inputan = $this->form; |
| 154 | 154 | $this->data['pk'] = $this->primaryKey; |
| 155 | 155 | $this->data['hide_form'] = $this->hide_form; |