Latest Laravel/PHP Articles

Latest Laravel/PHP Articles curated daily from around the web.


***Optimization using Eloquent in Laravel***. Eloquent is a powerful tool in the Laravel framework which provides many functionalities out of the box, and avoid...
The LEMP stack is a web development platform for hosting static and dynamic websites. It is a combination of free and open-source software including Linux, Ngin...
Monitoring your web application’s performance is key to ensuring you provide a good experience for your users. Here is a tip to help you see where your app is s...
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
I’ve found that introducing dedicated response objects that can handle multiple response formats is a really nice pattern to cleanup my controllers
There are several ways to load relationship counts on eloquent models. I’m going to explore the options and introduce you to a new one.
Laravel’s global mix helper function can be replaced during testing in Laravel 5.8. Here is why, and how, you might want to do this.
Laravel collections have become an essential part of my codebases and I couldn’t imagine working without them. I have found giving collections the voice of the...
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
One of the most widely used PHP Framework is Laravel, and choosing it for your business website development indeed serves you great benefits. Laravel produces b...
One of the most popular ways for building an application using Laravel is the Repository Pattern and use of this pattern has a lots of benefits and most of the...
Laravel Dusk is an expressive, easy-to-use, powerful browser automation and testing tool for Laravel. With Dusk you can programmatically test javascript driven...
As my current project grew, so did my models. In a hunt for thinner models, I realised it was possible to extract model scopes to a dedicated query builder clas...
CodeMentor Codementor is an online marketplace connecting developers with experts for on- demand 1:1 help via screen sharing, video, and text chat.
In this PHP tutorial understand 5 SOLID principles of software engineering deeply with code examples
Short closures, also called arrow functions, are available in PHP 7.4
A reusable modal can be also used dynamically. It was not easy to make it work dynamically since most of the solutions I’ve found are for single use or hard cod...
Today, after around a month of hacking, I’m pleased to announce my attempt at addressing PHP’s often-criticised weak type system. Some things you may want to kn...