Skip to content

Commit

Permalink
change create method to set
Browse files Browse the repository at this point in the history
  • Loading branch information
MoamenEltouny authored Mar 10, 2022
1 parent 47961eb commit fa44c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function scopeSection($query, string $section, string $locale = null)
* @param string $locale
* @return Menu
*/
public static function create(string $section, string $title, string $url, int $sort = 0, bool $visible = true, string $locale = null)
public static function set(string $section, string $title, string $url, int $sort = 0, bool $visible = true, string $locale = null)
{
$menu = new self;
$menu->section = $section;
Expand Down

0 comments on commit fa44c32

Please sign in to comment.