A day with Laravel - #025
News from the Laravel ecosystem on August 24, 2023 : Laravel 10.20, The State of Laravel Survey, JustSteveKing : building a forum ep. 2 , laravel-postgresql-enhanced, Laravel Form Requests
Hey devs 👋,
I am proud to present a new "A Day with Laravel" issue.
If you think of a resource that could be useful for the Laravel dev community, let me know in a comment or DM on Twitter (HappyToDev)
The objective of this newsletter?
🎯 To deliver to you daily, or almost daily*, the recent or important resources (videos, articles, GitHub repos, packages, tutorials, ...) that I could find on Laravel and its ecosystem.
This is a quick content of a few links to feed your watch on Laravel and its ecosystem daily.
* Or almost: why?
Simply because I'm the only one to manage this newsletter and "Quoi de neuf les devs? 🇫🇷" Depending on my availability and obligations, it is possible that this newsletter is not daily.
I need your support 🙏
My mission with this newsletter at 🇬🇧 and 🇫🇷 is to help you by bringing you as much value as possible, and I really like that.
If you want to support me to encourage me to keep up, please consider helping me by making a one-off or recurring donation starting at €2 by clicking on the image below or via this link.
To help me 👇
A free alternative to support me?
Of course, just subscribe below 👇
For whom?
For whom?
For Laravel devs, you guessed it.
Subscribe to not miss the next issues and receive them directly in your email box!
PS : tu préfères la version Française, clique sur le drapeau tricolore
👉 🇫🇷
Meaning of emojis used in titles
📖 Article
💡 Tip
🆕 News / Update
📦 Package
🐦 Tweet / Xeet
🎥 Video
🇬🇧 🆕 Laravel 10.20
This week's updates for Laravel :
added an Eloquent `createOrFirst()` methodUse trashed relationship even without soft deletes
Here is the justification and explanation for this point from the PR :
This would be useful in some 3rd party packages as this has become an issue where it's not possible to define the relationship such as
$this->morphTo()->withTrashed()
unless all relationship usesSoftDeletes
trait
Benchmark a single callable and get a result
Allow default values when merging data into an API resource
Canonical JSON path assertion
🇬🇧 The State of Laravel Survey
Don't forget to take Tobias Petry's (@tobias_petry) Laravel community survey, which takes about 5 minutes.
If you want to see what the results were for 2022 and 2021, you can visit the results page.
Battle Ready Laravel by Ash Allen
The link below is an affiliate link, it means that if you buy this book, I will get a small commission. If you don't want to help me, just search "Battle Ready Laravel" on your favourite search engine ;-)
The ultimate guide to auditing, testing, fixing and improving your Laravel applications so you can build better apps faster and with more confidence.
You can try by reading a free chapter 👇
🎥 Building a Forum - Getting chatty in the forum
Yesterday JustSteveKing published the next episode of the Laravel-based forum build.
And the next episode is scheduled for today. 12h00 :
🇬🇧 📦 laravel-postgresql-enhanced
I've just done Tobias's survey and as I indicated that I was using PostgreSql, I was presented with a link which I promptly checked out. Good for me. It's a package that lets you use all the power of PostgreSql in Laravel.
I thought it was absolutely essential that I share this with you.
Smousss
The link below is an affiliate link, it means that if you buy this book, I will get a small commission. If you don't want to help me, just search "Battle Ready Laravel" on your favourite search engine ;-)
What if you entrusted your tedious #Laravel tasks to Smousss?
For example :
- making your project translatable ( __() )
- migrate from PHPUnit to PEST2
- generate missing migrations
- and more
It's all possible with Smousss and AI.
🇬🇧 📖 Laravel Form Requests
This article introduces you to the FormRequest component in order to improve the quality of your application and your code.
Here is Ahmed's (@ahmedash95) presentation:
In Laravel, validating forms is key to maintaining the safety and accuracy of user data. The FormRequest component simplifies this by keeping the validation rules in a dedicated class, rather than in the controller. This also makes the code neater and allows for special functions related to the request, like fetching a model or changing a data type of a field.
This newsletter with its short format is yours, come and tell me what you think in the comments 👇
See you soon for the next issue.
If you haven't already done so, subscribe!