up
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Support\Str;
|
||||
use App\Models\Setting;
|
||||
|
||||
class SettingFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $model = Setting::class;
|
||||
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'logo' => fake()->word(),
|
||||
'description' => fake()->text(),
|
||||
'primary_color' => fake()->word(),
|
||||
'secondary_color' => fake()->word(),
|
||||
'created_at' => fake()->dateTime(),
|
||||
'updated_at' => fake()->dateTime(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user