mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
16 lines
No EOL
513 B
Markdown
16 lines
No EOL
513 B
Markdown
---
|
|
title: 'Interesting technique: add getters to Form Requests'
|
|
tweet_id: '1484566716403183617'
|
|
thread_slug: weekly-thread-2022-03
|
|
author_username: mmartin_joo
|
|
images:
|
|
- 'https://pbs.twimg.com/media/FJYsa1fXMAQQlEr.jpg'
|
|
created_at: 2022-01-21T16:41:01+00:00
|
|
slug: interesting-technique-add-getters-to-form-requests
|
|
---
|
|
💪Power up your #Laravel requests
|
|
|
|
You can add very simple getters on the request, so:
|
|
✅You actually know what's on the request
|
|
✅You have types
|
|
✅You can do basic data transformation |