Skip to content

Commit

Permalink
reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
arfenis committed Jun 4, 2024
1 parent ae6b643 commit b54651d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public function __construct(
public AppInterface $app,
public UserInterface $user,
public string $name,
public string $slug,
public bool $isVisible = false,
public bool $isSearchable = false,
public bool $isFiltrable = false,
public string $slug
) {
}

Expand All @@ -33,10 +33,10 @@ public static function viaRequest(array $request): self
app(Apps::class),
auth()->user(),
$request['name'],
$request['slug'] ?? Str::slug($request['name']),
$request['is_visible'] ?? false,
$request['is_searchable'] ?? false,
$request['is_filtrable'] ?? false,
$request['slug'] ?? Str::slug($request['name'])
);
}
}

0 comments on commit b54651d

Please sign in to comment.