mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
Weekly thread #5
This commit is contained in:
parent
e907eba3dd
commit
c9fdb7c5cd
13 changed files with 128 additions and 2 deletions
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
title: 'Laravel 9 can automatically bind route parameters to enums'
|
||||
tweet_id: '1494019551310139392'
|
||||
thread_slug: weekly-thread-2022-07
|
||||
author_username: mmartin_joo
|
||||
images:
|
||||
- 'https://pbs.twimg.com/media/FLJ8Gt_XsAM98uy.jpg'
|
||||
created_at: 2022-02-16T18:43:13+00:00
|
||||
slug: laravel-9-can-automatically-bind-route-parameters-to-enums
|
||||
---
|
||||
🔥Laravel 9 introduced enum route bindings!
|
||||
|
||||
You can type-hint your enum and Laravel will cast the string value from the URL:
|
||||
Loading…
Add table
Add a link
Reference in a new issue