mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
13 lines
No EOL
469 B
Markdown
13 lines
No EOL
469 B
Markdown
---
|
|
title: 'You can define casts for specific Eloquent queries'
|
|
tweet_id: '1505269894434021376'
|
|
thread_slug: weekly-thread-2022-11
|
|
author_username: cosmeescobedo
|
|
images:
|
|
- 'https://pbs.twimg.com/media/FNwBsytVkAAovTB.jpg'
|
|
created_at: 2022-03-19T19:48:04+00:00
|
|
slug: you-can-define-casts-for-specific-eloquent-queries
|
|
---
|
|
🔥 #Laravel Query Time Casting
|
|
|
|
We all know you can add casts to your eloquent models, but did you know you can add casts to a specific query? |