A day with Laravel - #020
News from the Laravel ecosystem on August 10, 2023. Scramble, This week in Filament, Laravel Full App Tutorial With NativePHP - Part II, whenCounted, Consuming API in Laravel
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
👉 🇫🇷
📦 Scramble
Scramble will generate the API documentation for your Laravel project without you needing to write by hand and update the PHPDoc annotations.
The documents are generated in OpenAPI 3.1.0 format. Stoplight Elements is used to display the documentation in the user interface.
This is what can be read on the introduction page of the Scramble documentation:
The main motto of the project is to generate as much API documentation automatically as possible. This allows you to focus on code and avoid annotating every possible param/field as it may result in outdated documentation. By generating docs automatically from the code your API will always have up-to-date documentation you can trust.
💡 This Week in Filament #1: August 10, 2023
Povilas offers you a new weekly appointment on Wednesday or Thursday to talk about what he has seen in FilamentPHP community.
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 👇
🎥 Laravel Full App Tutorial With NativePHP - Part II
Shane de LaravelOnline presents the rest of the video in which he builds an app with NativePHP.
🐦 whenCounted
EightyNine quotes a tip from LaravelDaily:
In #Laravel you may conditionally include the count of a relationship in your resource response by using the "whenCounted" method. By doing so, the attribute is not included if the relationships' count is missing. source:
@LaravelDaily Laravel-tips
Source : https://twitter.com/eighty9nine/status/1689508544133976064
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.
📕 Consuming API in Laravel
Please note that this is not an affiliate link ;-)
Ash Allen's next book is currently being written. As I tweeted a little while ago, you can't go wrong with Ash.
Take advantage of a 25% discount when the book is released by signing up to the waiting list.
Here's what you can expect from this book:
The book aims to help you build powerful API integrations that are testable, maintainable, and easy to understand . I'll show you the way that I've built integrations for many projects that help my clients and their users.
We'll cover techniques that we can use to improve the quality of API integration code .
We'll look at how we can use these techniques to integrate with real-world APIs using Saloon. We'll cover how to write tests for your API integrations, how to handle rate limits, and how to deal with errors .
We'll also cover how to securely handle webhooks sent from third-party APIs back to your application.
By the end of the book, you should have the knowledge and confidence to build your own API integrations to make your Laravel projects even more awesome !
Source : https://twitter.com/AshAllenDesign/status/1689630178522402816
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!