Latest Laravel/PHP Articles

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


This error is there because we don’t have any data in the Profile table which means Profile::all() will produce an empty array []. And if Profile::all() will pr...
This is an almost straight forward guide to setting up Laravel on your machine. Laravel, if you didn’t already know, is a PHP framework for building robust web...
Merging PHP arrays while preserving the numeric keys is not as straightforward as it may seems. The built-in PHP functions somehow reset the numeric keys while...
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Faker is the PHP library that generates fake data in the tables . You can find the faker documentation here. By default, Laravel installs the faker library as a...
The PHP programming language underpins much of the Internet. It forms the basis of popular content management systems like WordPress and Drupal, as well as more...
Create the GuestController.php file. The routes folder you will see a web.php file. write this code below in there.
In this article, I will explain how to create a search functionality in Laravel — but not just a simple search functionality, an intelligent one, which will hel...
CodeMentor Codementor is an online marketplace connecting developers with experts for on- demand 1:1 help via screen sharing, video, and text chat.
Without a doubt, Laravel is one of the fastest-growing frameworks for backend web development in 2019. The increasing popularity of Laravel is owed to its ever-...
We go to the project .env file and set up database credential. We create table name guests and it’s migration file.
We know that we can calculate distance between users using Google Maps, even better, it can show you exact directions between point A and B.
If you are looking for generating a custom primary key in the Laravel application then the Laravel ID generator will be a simple choice for you. You can generat...
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
In Episode 25 Our crew sat down and snagged some interviews in the atrium at php[world] in Tyson’s Corner, Virginia. This episode packs a lot into one hour...
As a software engineer I’ve spent plenty of time debugging production issues in my career. This kind of work is high pressure as the business is typically losin...
When you start your project with this framework, you will note that all your Controllers created via php artisan make:controller extends a base application cont...
Pagination in Laravel is a way to fetch limited model data in chunks with functionality to represent fetched data in dynamic links as pages. That is, let’s take...