How to Generate Custom Unique ID in Laravel

The unique ID can be important part of any web application because it uniquely identify the record by that particular id and this unique id can be used for many purpose. Some people like to generate unique id as auto incremental and someone like to generate unique id in custom format. This custom id can … Read more

How to use implode and explode in PHP

Implode and explode functions in PHP are commonly used function in PHP. These function may be used in PHP frameworks such as Laravel, CodeIgniter. Implode and explode functions are used to work with arrays and strings. So in this article i am going to explain how can can use Implode and Explode function in PHP. … Read more

Replace space with dash underscore in Laravel

Sometimes we need to replace some character or spaces with another character in laravel or any other programming languages similarly today, i am going to explain how can we replace space with dash “-” symbol with spaces between words such as replace space with dash underscore in laravel to replace-space-with-dash-underscore-in-laravel. This is very useful concept … Read more

Laravel Page Not Found Error 404 Not Found, but route exist in Laravel

The Page Not Found error generally found when your application can not find the required route in your application or website. Following are few common steps to resolve this error. 1. Check Route Definitions Make sure that the route you are trying to access is defined in the file called routes/web.php or routes/api.php (for API … Read more

(“SQLSTATE[HY000]: General error: 1005 Can’t create table (errno: 121 “Duplicate key on write or update”)”)

I am getting the error (“SQLSTATE[HY000]: General error: 1005 Can’t create table (errno: 121 “Duplicate key on write or update”)”) on my Laravel project i have three migrations which are following users migration business_profiles migration ads migration When I try to run migration command on terminal of my visual studio code it shows me following … Read more