Skip to content

Commit

Permalink
Fix CategoryForm + compatibility PHP8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickePatate committed Dec 18, 2024
1 parent 9fbe62c commit 0d95c81
Show file tree
Hide file tree
Showing 2 changed files with 1,081 additions and 994 deletions.
2 changes: 1 addition & 1 deletion demo/app/Sharp/Categories/CategoryForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function update($id, array $data)
{
$category = $id
? Category::findOrFail($id)
: new Category();
: Category::make(['order' => 100]);

$this->save($category, $data);

Expand Down
Loading

0 comments on commit 0d95c81

Please sign in to comment.