A day with Laravel - #023
News from the Laravel ecosystem on August 20, 2023 : Manager Pattern, Laravel, Telescope Toolbar, Laracon Nashville, Log Fake, Laravel Source Encrypter
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
👉 🇫🇷
🇬🇧 🆕 Using the Manager Pattern in Laravel
In this article, Ash Allen takes you on a quick tour of the concept of Design Pattern and looks in more detail at the Manager Pattern used in Laravel.
Here's the intro to his article:
At some point in your journey as a developer, you will likely come across the term "design pattern". However, what is it? How does it work? What is its intended use?
In this article, we'll briefly look at what design patterns are and why they're important. We'll then take a look at the "builder pattern" (or, specifically, a variation of it that's frequently used in Laravel, the "manager pattern"). We'll take a dive into the code and look at how the manager pattern is implemented in the Laravel framework itself. We'll then explore how we can implement the manager pattern in our own project's application code.
🇬🇧 Laravel Telescope Toolbar
If you're using Telescope with Laravel, then you'll probably like this package.
Here's the presentation:
"This package extends Laravel Telescope to show a powerful toolbar based on the Symfony Web Profiler.
The toolbar will show by default when Telescope is enabled and APP_DEBUG is true.
It offers a preview for exceptions / mail / notifications and log entries, a query counter and more."
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 👇
🎥 Laracon videos
If you are interested by Laravel, you know few weeks ago, Laracon took place at Nashville, Tenessee.
On laravel official channel you can retrieve all videos of this events.
Here it is the first one with Taylor. You can find all others videos here with this search link. Please Laravel Team, can you create a playlist ? ;-)
📦 Log fake
A package for simulating Laravel facades and services.
And here is the author's description:
A bunch of Laravel facades / services are able to be faked, such as the Dispatcher with
Bus::fake()
, to help with testing and assertions. This package gives you the ability to fake the logger in your app, and includes the ability to make assertions against channels, stacks, and a whole bunch more introduced in the logging overhaul from Laravel5.6
.
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 Source Encrypter
Un package qui te permet d’encrypter les sources de ton code. Il utilise en arrière plan phpBolt.
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!