6039d25c6d
Registers CatalogPlugin with the admin panel so catalog Filament resources auto-discover, and adds the EvCompany model/migration/ factory plus its Filament resource (auto-generated slug on create).
33 lines
780 B
PHP
33 lines
780 B
PHP
<?php
|
|
|
|
namespace Modules\Catalog\Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Modules\Catalog\Models\EvCompany;
|
|
|
|
/**
|
|
* @extends Factory<EvCompany>
|
|
*/
|
|
class EvCompanyFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => fake()->company(),
|
|
'mm_name' => fake()->company(),
|
|
'slug' => fake()->unique()->slug(),
|
|
'description' => fake()->sentence(),
|
|
'mm_description' => null,
|
|
'contact' => fake()->phoneNumber(),
|
|
'address' => fake()->address(),
|
|
'logo' => null,
|
|
'is_active' => true,
|
|
];
|
|
}
|
|
}
|