From ab8f0ac466ec7408037976b68fabd8a97bd05b3a Mon Sep 17 00:00:00 2001 From: Dipesh Khanal <63183800+Dipesh79@users.noreply.github.com> Date: Tue, 14 Jan 2025 23:22:50 +0545 Subject: [PATCH] Update README.md (#67) Updated return type form array to collection --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eb7ad2e..a22f58d 100644 --- a/README.md +++ b/README.md @@ -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'], - ]; + ]); } ```