You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
782 B
PHP
25 lines
782 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\PackingSlip;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
class PackingSlipFactory extends Factory
|
|
{
|
|
protected $model = PackingSlip::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'date_received' => $this->faker->dateTimeBetween('-1 month', 'now'),
|
|
'order_id' => $this->faker->randomNumber(6),
|
|
'amount' => $this->faker->numberBetween(2, 5).' boxes',
|
|
'contents' => $this->faker->numberBetween(2, 60).' '.$this->faker->randomElement(['t-shirts', 'caps', 'jackets', 'pants', 'sweaters']),
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
];
|
|
}
|
|
}
|