Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
rxcod9 committed Mar 17, 2022
1 parent ee4557e commit ac60a7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database/seeders/DataRowsTableSeeder.php
Expand Up @@ -57,7 +57,7 @@ public function run()
'edit' => 1,
'add' => 1,
'delete' => 1,
'order' => 2,
'order' => 3,
])->save();
}

Expand Down
2 changes: 1 addition & 1 deletion database/seeders/MenuItemsTableSeeder.php
Expand Up @@ -17,7 +17,7 @@ public function run()
{
$menu = Menu::where('name', 'admin')->firstOrFail();

$maxOrder = MenuItem::max('order');
$maxOrder = MenuItem::max('order') ?? 1;

$menuItem = MenuItem::firstOrNew([
'menu_id' => $menu->id,
Expand Down

0 comments on commit ac60a7c

Please sign in to comment.