@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('dbm_permissions', function (Blueprint $table) { |
|
| 16 | + Schema::create('dbm_permissions', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('slug'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('dbm_templates', function (Blueprint $table) { |
|
| 16 | + Schema::create('dbm_templates', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('old_name'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('dbm_fields', function (Blueprint $table) { |
|
| 16 | + Schema::create('dbm_fields', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->bigInteger('dbm_object_id')->unsigned(); |
| 19 | 19 | $table->string('name'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('dbm_collections', function (Blueprint $table) { |
|
| 16 | + Schema::create('dbm_collections', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('name')->unique(); |
| 19 | 19 | $table->string('old_name'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('dbm_objects', function (Blueprint $table) { |
|
| 16 | + Schema::create('dbm_objects', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('slug')->unique(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('dbm_collection_fields', function (Blueprint $table) { |
|
| 16 | + Schema::create('dbm_collection_fields', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->bigInteger('dbm_collection_id'); |
| 19 | 19 | $table->string('name'); |
@@ -19,10 +19,10 @@ |
||
| 19 | 19 | $pdo = DB::connection()->getPdo(); |
| 20 | 20 | |
| 21 | 21 | // trim the values |
| 22 | - $allowed = array_map(function ($value) use ($pdo) { |
|
| 22 | + $allowed = array_map(function($value) use ($pdo) { |
|
| 23 | 23 | return $pdo->quote(trim($value)); |
| 24 | 24 | }, $allowed); |
| 25 | 25 | |
| 26 | - return 'enum(' . implode(', ', $allowed) . ')'; |
|
| 26 | + return 'enum('.implode(', ', $allowed).')'; |
|
| 27 | 27 | } |
| 28 | 28 | } |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | { |
| 72 | 72 | $provider = config('auth.guards.api.provider'); |
| 73 | 73 | |
| 74 | - return $this->belongsTo(config('auth.providers.' . $provider . '.model')); |
|
| 74 | + return $this->belongsTo(config('auth.providers.'.$provider.'.model')); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -Route::group(['prefix' => 'database', 'namespace' => config('dbm.controller_namespace')], function () { |
|
| 2 | +Route::group(['prefix' => 'database', 'namespace' => config('dbm.controller_namespace')], function() { |
|
| 3 | 3 | //Database Table |
| 4 | 4 | Route::get('/', 'DatabaseController@index'); |
| 5 | 5 | Route::get('table/builder/{name}', 'DatabaseController@index'); |