first change
This commit is contained in:
37
Modules/Client/database/factories/ClientFactory.php
Normal file
37
Modules/Client/database/factories/ClientFactory.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Client\Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class ClientFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*/
|
||||
protected $model = \Modules\Client\Models\Client::class;
|
||||
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->name,
|
||||
'company_name' => $this->faker->company,
|
||||
'contact' => $this->faker->phoneNumber,
|
||||
'logo' => $this->faker->imageUrl(200, 200, 'business', true, 'Faker'),
|
||||
'manager_name' => $this->faker->name,
|
||||
'manager_contact' => $this->faker->phoneNumber,
|
||||
'poc_name' => $this->faker->name,
|
||||
'poc_contact' => $this->faker->phoneNumber,
|
||||
'promised_document' => $this->faker->word . '.pdf',
|
||||
'poc_document' => $this->faker->word . '.pdf',
|
||||
'description' => $this->faker->paragraph,
|
||||
'status' => $this->faker->numberBetween(0, 1),
|
||||
'createdby' => 1,
|
||||
'updatedby' => 1,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user