Skip to content

Commit

Permalink
Update README.md (#67)
Browse files Browse the repository at this point in the history
Updated return type form array to collection
  • Loading branch information
Dipesh79 authored Jan 14, 2025
1 parent cf15939 commit ab8f0ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ If you don't want to define an `Enum` for your statuses, or you have a special l
```php
protected function statuses(): Collection
{
return [
return collect([
['id' => 'user', 'title' => 'User'],
['id' => 'admin', 'title' => 'Admin'],
];
]);
}
```

Expand Down

0 comments on commit ab8f0ac

Please sign in to comment.