Init: Hoan thanh kien truc V3 va Filament UI
This commit is contained in:
20
database/factories/ProjectFactory.php
Normal file
20
database/factories/ProjectFactory.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Project;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class ProjectFactory extends Factory
|
||||
{
|
||||
protected $model = Project::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'name' => 'Khu đô thị HQLand ' . $this->faker->unique()->city(),
|
||||
'type' => $this->faker->randomElement(['Khu đô thị', 'Chung cư', 'Đất nền phân lô']),
|
||||
'address' => $this->faker->address(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user