Category Archives: Laravel

How to integrate paytm payment gateway in laravel example

As we know that paytm is fastest growing plateform to provies payment services. So here i will let you know how to integrate paytm payment gateway in laravel with an example. Paytm provides digital payment methods and boomed after digital india movement. Most of the marchant accepts paytm payment.  Here, in this example we will use a laravel… Read More »

How to validate mobile phone number in laravel with example

Data validation and sanitization is a very important thing from security point of view for a web application. We can not rely on user’s input. In this article i will let you know how to validate mobile phone number in laravel with some examples. if we take some user’s information in our application, so usually we take phone… Read More »

How to fix CORS error in laravel using middileware

In this article i am going to let you know how to fix CORS error in laravel using middleware. CORS means Cross origin resource sharing.  Sometimes while working of an application like angular, react and get an error like Cross-Origin Request Blocked after an api call or when we call the api through ajax request, we also get… Read More »

Laravel detect mobile device and redirect mobile website htaccess

In this article, i will let you know laravel detect mobile device and redirect mobile website. So let’s see how can we detect mobile device and redirect website to the mobile website. A web application can be open on desktops, laptops, tablets and mobiles. But a large application should be optimized for all devices means if we open… Read More »

Laravel real time event broadcasting with socket.io example

In the today’s technogy age real time data has become an essential thing. So here, in this article i will share laravel real time event broadcasting with socket.io. Here in this example we will see how can we broadcast real times events. Basically, to acheive this thing in our laravel application, we will use predis which is a… Read More »

How to perform migration rollback in laravel

As we know that laravel migration provides very simple way to create database table structure. We need to create migration file and write table structure then migrate that migration. Sometimes we need to rollback that migration. So here we will discuss about the migration rollback in laravel. We can run the rollback artisan command to rollback on a… Read More »

How to migrate single migration in laravel

Sometimes while working on a laravel application, we just need to migrate only single or specific migration. If we run normal migrate command it will migrate all the migrations written in the application. Here i will let you know to migrate single migration in laravel. Migrations play very important role for aplication’s database structure. We just need to… Read More »

Php how to delete multiple rows through checkbox using ajax in laravel

If there are numbers of records available in the grid and you want to delete some of them then you have two ways to delete these records. One is that you can delete one by one but it will take long time to delete records and in the second way you can delete multiple rows through checkbox using… Read More »

Laravel create model migration and controller in a single command

Hello guys, sometimes while working on the large application, we need to create some very small modules like simple CRUD. So here in this article i will let you know laravel create model migration and controller in a single command. We will run a single artisan command to create model. migration and controller. We can also create resource… Read More »

How to fix Laravel PDOException Could Not Find Driver error

While working on the laravel application sometimes we got an error like PDOException Could Not Find Driver error. Here, we will discuss about the solution to fix “could not find driver” or after artisan migration running you got error “Class ‘Doctrine\\DBAL\\Driver\\PDOMySql\\Driver’ not found”. Solution 1: If you do not have mysql/postgresql php module installed in your system If… Read More »