We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('settings', function (Blueprint $table) { |
|
15 | + Schema::create('settings', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('key'); |
18 | 18 | $table->string('name'); |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Backpack\CRUD\app\Http\Controllers\CrudController; |
6 | 6 | // VALIDATION |
7 | -use Backpack\Settings\app\Http\Requests\SettingRequest as StoreRequest; |
|
8 | 7 | use Backpack\Settings\app\Http\Requests\SettingRequest as UpdateRequest; |
9 | 8 | |
10 | 9 | class SettingCrudController extends CrudController |
@@ -64,7 +64,7 @@ |
||
64 | 64 | $this->crud->hasAccessOrFail('update'); |
65 | 65 | |
66 | 66 | $this->data['entry'] = $this->crud->getEntry($id); |
67 | - $this->crud->addField((array) json_decode($this->data['entry']->field)); // <---- this is where it's different |
|
67 | + $this->crud->addField((array)json_decode($this->data['entry']->field)); // <---- this is where it's different |
|
68 | 68 | $this->data['crud'] = $this->crud; |
69 | 69 | $this->data['fields'] = $this->crud->getUpdateFields($id); |
70 | 70 | $this->data['title'] = trans('backpack::crud.edit').' '.$this->crud->entity_name; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Backpack\Settings; |
4 | 4 | |
5 | 5 | use Backpack\Settings\app\Models\Setting as Setting; |
6 | -use Config; |
|
7 | 6 | use Illuminate\Routing\Router; |
8 | 7 | use Illuminate\Support\Facades\Schema; |
9 | 8 | use Illuminate\Support\ServiceProvider; |
@@ -39,14 +39,14 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function setupRoutes(Router $router) |
41 | 41 | { |
42 | - $router->group(['namespace' => 'Backpack\Settings\app\Http\Controllers'], function ($router) { |
|
42 | + $router->group(['namespace' => 'Backpack\Settings\app\Http\Controllers'], function($router) { |
|
43 | 43 | // Admin Interface Routes |
44 | 44 | Route::group( |
45 | 45 | [ |
46 | 46 | 'prefix' => config('backpack.base.route_prefix', 'admin'), |
47 | 47 | 'middleware' => ['web', 'admin'], |
48 | 48 | ], |
49 | - function () { |
|
49 | + function() { |
|
50 | 50 | Route::resource('setting', 'SettingCrudController'); |
51 | 51 | } |
52 | 52 | ); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | public function register() |
62 | 62 | { |
63 | 63 | $this->setupRoutes($this->app->router); |
64 | - $this->app->singleton('settings', function () { |
|
64 | + $this->app->singleton('settings', function() { |
|
65 | 65 | $store = []; |
66 | 66 | if (count(Schema::getColumnListing('settings'))) { |
67 | 67 | // get all settings from the database |