Latest Laravel/PHP Articles

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


The mcrypt php extension is an interface for mcrypt cryptography library. We will see how to install mcrypt php extension for laravel. Laravel 5.1 and later ver...
One of the problems of PHP as a programming language is that it supports single inheritance. This means a class can only inherit from one other class. So code r...
***Optimization using Eloquent in Laravel***. Eloquent is a powerful tool in the Laravel framework which provides many functionalities out of the box, and avoid...
CodeMentor Codementor is an online marketplace connecting developers with experts for on- demand 1:1 help via screen sharing, video, and text chat.
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...
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.
Digital Ocean Providing developers and businesses a reliable, easy-to-use cloud computing platform of virtual servers (Droplets), object storage ( Spaces), and more.
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...
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...
CodeMentor Codementor is an online marketplace connecting developers with experts for on- demand 1:1 help via screen sharing, video, and text chat.
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...
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