@@ -7,7 +7,7 @@ |
||
| 7 | 7 | { |
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | - Schema::create('tags', function (Blueprint $table) { |
|
| 10 | + Schema::create('tags', function(Blueprint $table) { |
|
| 11 | 11 | $table->bigIncrements('id'); |
| 12 | 12 | $table->timestamps(); |
| 13 | 13 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | { |
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | - Schema::create('images', function (Blueprint $table) { |
|
| 10 | + Schema::create('images', function(Blueprint $table) { |
|
| 11 | 11 | $table->increments('id'); |
| 12 | 12 | $table->timestamps(); |
| 13 | 13 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | { |
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | - Schema::create('suppliers', function (Blueprint $table) { |
|
| 10 | + Schema::create('suppliers', function(Blueprint $table) { |
|
| 11 | 11 | $table->bigIncrements('id'); |
| 12 | 12 | $table->timestamps(); |
| 13 | 13 | |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | StoreResource::class, |
| 30 | 30 | ]); |
| 31 | 31 | |
| 32 | - Nova::auth(function () { |
|
| 32 | + Nova::auth(function() { |
|
| 33 | 33 | return true; |
| 34 | 34 | }); |
| 35 | 35 | |
@@ -15,8 +15,8 @@ discard block |
||
| 15 | 15 | { |
| 16 | 16 | parent::boot(); |
| 17 | 17 | |
| 18 | - Nova::serving(function () { |
|
| 19 | - Nova::style('laravel-nova-custom-styles', __DIR__ . '/../../public/css/nova.css'); |
|
| 18 | + Nova::serving(function() { |
|
| 19 | + Nova::style('laravel-nova-custom-styles', __DIR__.'/../../public/css/nova.css'); |
|
| 20 | 20 | }); |
| 21 | 21 | } |
| 22 | 22 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | protected function gate() |
| 43 | 43 | { |
| 44 | - Gate::define('viewNova', function () { |
|
| 44 | + Gate::define('viewNova', function() { |
|
| 45 | 45 | return true; |
| 46 | 46 | }); |
| 47 | 47 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | { |
| 29 | 29 | parent::boot(); |
| 30 | 30 | |
| 31 | - static::addGlobalScope('inlineScope', function (CachedBuilder $builder) { |
|
| 31 | + static::addGlobalScope('inlineScope', function(CachedBuilder $builder) { |
|
| 32 | 32 | return $builder->where('name', 'LIKE', "A%"); |
| 33 | 33 | }); |
| 34 | 34 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | parent::boot(); |
| 28 | 28 | |
| 29 | - static::addGlobalScope('inlineScope', function (Builder $builder) { |
|
| 29 | + static::addGlobalScope('inlineScope', function(Builder $builder) { |
|
| 30 | 30 | return $builder->where('name', 'LIKE', "A%"); |
| 31 | 31 | }); |
| 32 | 32 | } |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Book; |
| 4 | 4 | |
| 5 | -Route::get('pagination-test', function () { |
|
| 5 | +Route::get('pagination-test', function() { |
|
| 6 | 6 | $books = (new Book) |
| 7 | 7 | ->paginate(10); |
| 8 | 8 | |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | )); |
| 13 | 13 | }); |
| 14 | 14 | |
| 15 | -Route::get('pagination-test2', function () { |
|
| 15 | +Route::get('pagination-test2', function() { |
|
| 16 | 16 | $books = (new Book) |
| 17 | 17 | ->paginate(10, ["*"], "custom-page"); |
| 18 | 18 | |
@@ -30,14 +30,14 @@ |
||
| 30 | 30 | { |
| 31 | 31 | $books = (new Book) |
| 32 | 32 | ->with("stores") |
| 33 | - ->whereHas("stores", function ($query) { |
|
| 33 | + ->whereHas("stores", function($query) { |
|
| 34 | 34 | $query->whereRaw('address like ?', ['%s%']); |
| 35 | 35 | }) |
| 36 | 36 | ->get(); |
| 37 | 37 | |
| 38 | 38 | $uncachedBooks = (new UncachedBook) |
| 39 | 39 | ->with("stores") |
| 40 | - ->whereHas("stores", function ($query) { |
|
| 40 | + ->whereHas("stores", function($query) { |
|
| 41 | 41 | $query->whereRaw('address like ?', ['%s%']); |
| 42 | 42 | }) |
| 43 | 43 | ->get(); |