repository pattern
This commit is contained in:
25
database/factories/OrderFactory.php
Normal file
25
database/factories/OrderFactory.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Order>
|
||||
*/
|
||||
class OrderFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'details' => $this->faker->sentences(4, true),
|
||||
'client' => $this->faker->name(),
|
||||
'is_fulfilled' => $this->faker->boolean(),
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user