By @samuel · 2022-04-02 14:48 (edited)
Hey everyone. This is our weekly thread with news from the Laravel world, our weekly code tips, and other updates.
fresh()
and refresh()
. One returns a fresh new instance, while the other refreshes an existing instance
whereBetween
to filter for records between two timestamps
newLine()
on Stringable instances
Notification::assertNothingSentTo()
to check that no notifications were sent to a specific user/notifiable model
Carbon
cheat sheet for generating dates
make:model
cheat sheet