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.
30 lines
1009 B
PHP
30 lines
1009 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Customer;
|
|
use App\Models\ShippingEntry;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
class ShippingEntryFactory extends Factory
|
|
{
|
|
protected $model = ShippingEntry::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
'courier' => $this->faker->randomElement(['UPS', 'Purolator', 'FreightCom', 'E-Shipper', 'ACE']),
|
|
'contact' => $this->faker->randomElement(['courier.com', '+1 604 123 4567']),
|
|
'account_title' => $this->faker->word,
|
|
'account_username' => 'username',
|
|
'account_password' => 'password',
|
|
'info_needed' => $this->faker->words(3,true),
|
|
'notify' => 'someone@account.com',
|
|
'notes' => $this->faker->randomElement(['', '', '', 'Some really long text to simulate a note being put here']),
|
|
];
|
|
}
|
|
}
|