Initial commit
This commit is contained in:
21
database/factories/EdiCategoryFactory.php
Normal file
21
database/factories/EdiCategoryFactory.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\EdiCategory;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\EdiCategory>
|
||||
*/
|
||||
class EdiCategoryFactory extends Factory
|
||||
{
|
||||
protected $model = EdiCategory::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'value' => $this->faker->unique()->bothify('CAT-##'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user