first change

This commit is contained in:
2025-07-27 17:40:56 +05:45
commit f8b9a6725b
3152 changed files with 229528 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace Modules\Employee\Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class DesignationFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*/
protected $model = \Modules\Employee\Models\Designation::class;
/**
* Define the model's default state.
*/
public function definition(): array
{
static $order = 1;
$title = $this->faker->firstName();
return [
'title' => $title,
'slug' => Str::slug($title),
'status' => $this->faker->randomElement([0, 1]),
'order' => $order++,
'department_id' => 1,
'createdby' => 1,
'updatedby' => 1,
];
}
}