Premier commit
This commit is contained in:
39
database/seeders/LinkSeeder.php
Normal file
39
database/seeders/LinkSeeder.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Link;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class LinkSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
Link::create([
|
||||
'title' => 'Google',
|
||||
'url' => 'https://google.com',
|
||||
'icon' => 'bi-google',
|
||||
'color' => 'danger',
|
||||
'order' => 10,
|
||||
]);
|
||||
|
||||
Link::create([
|
||||
'title' => 'Office 365',
|
||||
'url' => 'https://portal.office.com',
|
||||
'icon' => 'bi-microsoft',
|
||||
'color' => 'primary',
|
||||
'order' => 20,
|
||||
]);
|
||||
|
||||
Link::create([
|
||||
'title' => 'Support',
|
||||
'url' => '#',
|
||||
'icon' => 'bi-life-preserver',
|
||||
'color' => 'info',
|
||||
'order' => 30,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user