@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('password_resets', function (Blueprint $table) { |
|
| 15 | + Schema::create('password_resets', function(Blueprint $table) { |
|
| 16 | 16 | $table->string('email')->index(); |
| 17 | 17 | $table->string('token')->index(); |
| 18 | 18 | $table->timestamp('created_at'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('users', function (Blueprint $table) { |
|
| 15 | + Schema::create('users', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('email')->unique(); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('makes', function (Blueprint $table) { |
|
| 15 | + Schema::create('makes', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | }); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('racks', function (Blueprint $table) { |
|
| 15 | + Schema::create('racks', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('warehouse_id')->unsigned(); |
| 18 | 18 | $table->foreign('warehouse_id')->references('id')->on('warehouses')->onDelete('cascade'); |
@@ -15,8 +15,8 @@ |
||
| 15 | 15 | public function run() |
| 16 | 16 | { |
| 17 | 17 | $supplier = Supplier::first(); |
| 18 | - Make::all()->each(function (Make $make) use ($supplier) { |
|
| 19 | - factory(Purchase::class, 2)->create(['make_id' => $make->id, 'supplier_id' => $supplier->id]); |
|
| 18 | + Make::all()->each(function(Make $make) use ($supplier) { |
|
| 19 | + factory(Purchase::class, 2)->create([ 'make_id' => $make->id, 'supplier_id' => $supplier->id ]); |
|
| 20 | 20 | factory(Purchase::class, 'delivered', 5) |
| 21 | 21 | ->create([ |
| 22 | 22 | 'make_id' => $make->id, |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function run() |
| 15 | 15 | { |
| 16 | - Make::all()->each(function (Make $make) { |
|
| 17 | - factory(Model::class)->create(['make_id' => $make->id]); |
|
| 16 | + Make::all()->each(function(Make $make) { |
|
| 17 | + factory(Model::class)->create([ 'make_id' => $make->id ]); |
|
| 18 | 18 | }); |
| 19 | 19 | } |
| 20 | 20 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function run() |
| 14 | 14 | { |
| 15 | - Purchase::delivered()->get()->each(function (Purchase $purchase) { |
|
| 15 | + Purchase::delivered()->get()->each(function(Purchase $purchase) { |
|
| 16 | 16 | while ($purchase->isPendingStorage()) { |
| 17 | 17 | $guitar = factory(App\Guitar::class)->make(); |
| 18 | 18 | $guitar->rack_id = $purchase->make->racks->first()->id; |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | public function run() |
| 16 | 16 | { |
| 17 | 17 | $warehouse = Warehouse::first(); |
| 18 | - Make::all()->each(function (Make $make) use ($warehouse) { |
|
| 18 | + Make::all()->each(function(Make $make) use ($warehouse) { |
|
| 19 | 19 | factory(Rack::class)->create([ |
| 20 | 20 | 'make_id' => $make->id, |
| 21 | 21 | 'warehouse_id' => $warehouse->id, |
@@ -11,6 +11,6 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function run() |
| 13 | 13 | { |
| 14 | - factory(App\Supplier::class, 1)->create(['name' => 'Aria Resellers', 'location' => 'China']); |
|
| 14 | + factory(App\Supplier::class, 1)->create([ 'name' => 'Aria Resellers', 'location' => 'China' ]); |
|
| 15 | 15 | } |
| 16 | 16 | } |