first commit

This commit is contained in:
Noor E Ilahi
2026-01-09 12:54:53 +05:30
commit 7ccf44f7da
1070 changed files with 113036 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace Database\Factories;
use App\Models\Priority;
use App\Models\Project;
use Illuminate\Database\Eloquent\Factories\Factory;
class ProjectFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Project::class;
public function definition(): array
{
return [
'company_id' => fake()->numberBetween(1, 10),
'name' => fake()->sentence(3),
'description' => fake()->paragraph,
'important' => fake()->boolean,
'source' => 'internal',
'default_priority_id' => fn () => Priority::orderByRaw('RAND()')->first()->id,
'created_at' => now()
];
}
}