22dfb12948
Added height to the OrderPacked event constructor and dispatch call to match the packing form which captures width, length, height, and weight.
23 lines
435 B
PHP
23 lines
435 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\Order;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class OrderPacked
|
|
{
|
|
use Dispatchable, SerializesModels;
|
|
|
|
public function __construct(
|
|
public Order $order,
|
|
public float $width,
|
|
public float $length,
|
|
public float $height,
|
|
public float $weight,
|
|
public ?int $packedBy = null,
|
|
) {
|
|
}
|
|
}
|