migrate template
This commit is contained in:
22
database/factories/SocialLinkFactory.php
Normal file
22
database/factories/SocialLinkFactory.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\SocialLink;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<SocialLink>
|
||||
*/
|
||||
class SocialLinkFactory extends Factory
|
||||
{
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'platform' => fake()->randomElement(['Instagram', 'Facebook', 'Email', 'Telegram']),
|
||||
'url' => fake()->url(),
|
||||
'icon' => 'link',
|
||||
'sort_order' => fake()->numberBetween(0, 10),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user