ManuGlez がリツイート
ManuGlez
5.8K posts

ManuGlez
@_ManuelGL_
Father of two girls, full stack developer,Laravel lover and eternal learner.
España 参加日 Nisan 2011
234 フォロー中243 フォロワー
ManuGlez がリツイート

I've worked with Laravel for 10 years.
I've come up with 5 pretty random lessons from those 10 years.
- - - - - -
1. Laravel became a full-stack framework. So should we.
I'm a core PHP back-end dev, and that's what I enjoyed with Laravel. But then we had Vue, Inertia, TALL-stack, and now it's a mix. That shift to full-stack happened gradually, and then suddenly.
But it reflects the market: everyone these days needs to be a full-stack, at least on some level.
- - - - - -
2. You can structure your projects however YOU want.
Laravel allows you a lot of freedom. Services, Actions, Repositories, Jobs, custom PHP classes, more strict design patterns - whatever you want.
It's a blessing and a curse: newcomers are often lost what is the RIGHT WAY. And there isn't one right way.
This comes with a caveat: the right way depends on the context of your project and the guidelines of the company you're working with.
So whichever structure you choose, the goal is for others to understand it and maintain the project.
- - - - - -
3. Most performance problems will be with DB.
Whenever I see some page/API loading slowly, I check the Debugbar/Telescope first for the amount of queries.
Then I check for individual slow queries.
Then for the amount of RAM that the queries take: maybe they return too much data?
So yeah, all of that Eloquent before any fancy restructuring, Octane or other optimization.
- - - - - -
4. Rely on framework. Packages come and go.
After 10 years with Laravel, I see so many packages abandoned or just not keeping up with the framework changes.
So, I advice to trust only the packages that are:
1. Either from trusted creators who have reputation of maintaining things
2. Or, small enough so you would easily replace them in the future
And quite often, framework itself has a very similar functionality as the package offers.
Of course, packages are often a way to deliver project v1.0 faster. But, with every package, know the consequences for your v2.0 of your project.
- - - - - -
5. Writing tests is NOT hard.
Laravel team and especially Nuno Maduro went above and beyond so any developer would be able to start writing tests QUICKLY.
So, if you are in a camp of "I don't have time to write tests", it's a lame excuse now. Heck, you can even generate tests with AI.
- - - - - -
Any other "global" lessons/advice from working with Laravel you would add?
English
ManuGlez がリツイート

If you'd rather watch this video on Youtube, we just uploaded it there as well.
youtube.com/watch?v=-ezOz6…

YouTube
Jeffrey Way@jeffrey_way
I'm working on a Laracasts video today that will make 50% of you go...
English
ManuGlez がリツイート

The State Of Laravel 2024 survey has started!
You can now participate to identify how the ecosystem changed over the past 12 months!
Please RT for reach ❤️
stateoflaravel.com/?ref=2024
English
ManuGlez がリツイート
ManuGlez がリツイート
ManuGlez がリツイート

🔗 A deeper dive into optimal PHP-FPM settings (by @geoligard)
geoligard.com/a-deeper-dive-…
English
ManuGlez がリツイート

You helped @weaverryan raise 210k in less than 2 days! The #Symfony and #PHP community are truly amazing. We can reach the 250k goal today. 🙏 gofundme.com/f/support-ryan…
English
ManuGlez がリツイート

Let's rally around Ryan and his family.
One of the most positive people in the PHP community needs our support. ❤️
Ryan Weaver@weaverryan
So.... I have incurable brain cancer and I'm asking for your love & support 💖
English

Hello @freekmurze, I am encountering a minor issue with the Ray App on Ubuntu. Each time I open and close the app, I need to reactivate the license. Do you have any suggestions? Thanks in advance and thanks for your contributions.
English
ManuGlez がリツイート

Jeffrey Way's PhpStorm Setup in 2024 laravel-news.com/phpstorm-setup… posted by @jeffrey_way
English
ManuGlez がリツイート

Laravel 11 is now available. ❤️
Laravel Reverb is now available. 📡
I love this release. Beautiful simplicity is back. Thank you for all of your support and we hope you use Laravel to build amazing applications. We can't wait to see what you do.
blog.laravel.com/laravel-11-now…
English
ManuGlez がリツイート

🗓️ One month.
📼 One video per day.
👑 Everything you need to start building Laravel apps.
🙌 Free to all.
Begins Tuesday, March 12th.
laracasts.com

English
ManuGlez がリツイート

The Js Facade is a really brilliant idea. A clean solution to pass data to Js without calling json_encode. @laravelphp 11 is coming soon.

English
ManuGlez がリツイート












