Seeder user menu, Guest Layout fix
Some checks are pending
deploy / deploy (push) Waiting to run

This commit is contained in:
2024-01-01 10:53:19 +01:00
parent 9bbd65eaaf
commit bb1e38d274
3 changed files with 50 additions and 2 deletions

View File

@@ -0,0 +1,44 @@
<?php
namespace Database\Seeders;
use App\Models\Menu;
use App\Models\Permission;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class UserMenuSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$ikea = Menu::create([
'name' => 'Ikea',
'icon' => "house-chimney",
'route_or_url' => 'root',
'position' => 1,
'deleteable' => false,
]);
$about = $ikea->childs()->create([
'name' => 'About',
'route_or_url' => 'about',
'icon' => 'circle-info',
'position' => 1,
'deleteable' => false,
]);
$exchange = $ikea->childs()->create([
'name' => 'Exchange',
'route_or_url' => 'exchange',
'icon' => 'circle-info',
'position' => 2,
'deleteable' => false,
]);
}
}