So today is an important day for me, as I have unboxed my Youtube Silver Play button for 100,000 subscribers, still can't believe it. Meanwhile, business as usual, will still keep putting out content daily, and newsletters weekly :) Enjoy!
From my Youtube Channel
Tweets of the week
From Laravel Community
Zero Hassle CLI Application with Laravel Zero
How can I put this? CLI apps are cool. The ability to open a terminal anywhere and just run a command to do a job that might have taken you much longer. Opening the browser going to the right page, logging in and finding what it is you need to do, and waiting for the page to load ....
User-Toggled Table Columns with Laravel and Vue 3
A nice addition to any table / grid is to give Users the ability to hide columns they aren't interested in. Usually these choices should persist on page refreshes, as well.
This is a simple way to get this done. It isn't hard, at all.
As always, you can check out the code on Github:
3 New Things Added - New In Laravel 9.25.0
In this video, we will be looking at 6 new things that are added to the latest version of Laravel which is v9.25.0
=== Support ===
If you want me to continue making this kind of video for free on YouTube, then you can help me financially by sending a few b
3 years of lift-and-shift into AWS Lambda
Let’s set the scene. We’re looking for scaling a PHP application. Googling around take us to find out that AWS Lambda is the most scalable service out there. It doesn’t support PHP natively, but we got https://bref.sh.
A Deep Dive Into Laravel Queues
Web applications and software are generally satisfactory when they are fast. However, some tasks take time, such as sending an automated email or creating a detailed report by analyzing thousands of data points.
Laravel named query arguments
When writing a query it's common to use closures when using advanced clauses or grouping condition together in-order for the query to behave as expected. With more complex queries which have numerous closures the repeated use of the $query argument can make readability awkward.
Using Pest to test Laravel Livewire validation rules
Last year I wrote a post about testing Laravel Livewire validation rules with PHP Unit. This post uses the same techniques as that post, but shows how to transfer it to Pest instead of PHP Unit. If you haven’t heard of Pest before then here is a description from the Pest website.
Is COUNT(*) slow in MySQL?
TL;DR: COUNT(*) is optimized to be fast, you should use it. You have probably read in a bunch of different places that you shouldn't use SELECT(*) in MySQL when you don't need all the data. SELECT(*) selects all the columns in the table, not just the ones that you might need.
Refactoring #6: Improve Code Quality in Laravel using Rector
I recently discovered Rector and was completely blown away by its power and effectiveness. The promise is simple: you install and run the package, you get instant automated upgrades and refactorings. Damn, that's bold, I thought as I dry ran it into one of my projects.
Packagit is amazing laravel modules management, you could manage huge project with many separate laravel modules. You could run packagit or a short name p, such as p new Auth, a module named Auth would be created.
That's it for this week, see you in the next newsletter issue!