Web Prepration

Web Concept Tutorials

laravel pagination

Laravel, PHP

In this post, I will guide you “how to create a custom helper file in laravel”. I will give you some simple steps for creating a custom helper function in the Laravel 6 application. As we know Laravel 6 also provides a helper function for an array, URL, route, path, etc. But sometimes we need some functions, it is much time required. so I think it’s better we create our helper function use everywhere the same code. So let’s create a helper file in laravel 6 by using the following steps. Now if you want to add custom helper functions in your website or project directory then you have to follow just three-step and use it. Step 1: Create helpers.php File In this step, first, we need to create a folder helper and Toronto Web Design then creates a file in the Helper folder app/Helper/helper.php in your laravel project and

read more >>
Laravel, PHP

In this post, I am going to explain “How to Integrate Paytm Payment Gateway in Web”. Paytm is the most popular mobile wallet and payment method used in India. As we know today market, all the things digital and as specially for India. India become digital india.Paytm is the most popular E commerce and payment tool in India. There is the official documentation about integrating Paytm but that is very confusing if you are newbie. Here I will show you step by step explanation “How to Integrate Paytm Payment Gateway”. Step 1:- Install laravel using below command

Step 2:-  In this step we need to install required packages anandsiddharth/laravel-paytm-wallet package for paytm developer api so open your terminal and fire bellow command:

After install package open config/app.php file and add service provider.

After that add configuration of API keys in service.php file

Step 3:- In this step we need

read more >>
Interview Questions, Laravel

In this post, I am going to share some important questions for laravel interview. In this post share from basics to advance level questions and answers of laravel, which is mostly asked in interview. 1)  What is Laravel ? Answer:- Laravel is a free open source “PHP Framework ” based on MVC design pattern. It is created by Taylor Otwell. Laravel provides expressive and elegant syntax that helps in creating a wonderful web application easily and quickly. 2) How to install laravel via composer ? Answer:-  You can install Laravel via composer by running below command.

3) What is Lumen? Answer:-  Lumen is PHP micro-framework that built on Laravel’s top components.It is created by Taylor Otwell. It is perfect option for building Laravel based micro-services and fast REST API’s. It’s one of the fastest micro-frameworks available. 4) List some features of laravel 5.0 ? Answer:-   Inbuilt CRSF (cross-site request forgery ) Protection. Authentication Scaffolding

read more >>
CodeIgnitor, Laravel, PHP

In this post, I will be show you the easiest  way to implement  DataTables  server side processing in Laravel. Here I will show you how to fetch data  using ajax in laravel and render that data in DataTable with searching, Pagination and sorting with server side processing. This post is an extension to a previous post on DataTables, where we initiated data tables with basic initialization. As many readers suggested to make a tutorial on DataTables server-side. . In this post we have explain step by step. Because Jquery DataTables will add some advance features like quick search of table data, it will make automatic pagination without write of code, table column ordering, sorting of table column and many more. Now before we start coding include Datatables CSS file and Javascript files from CDN in your view page as follows.

Now let’s understand what all tasks we need to do

read more >>
Laravel, PHP

In this post, I am going to given example with Demo how to create CURD (CREATE,UPDATE and DELETE) operation in laravel 5+ Using Ajax from scratch. This article is very helpful for laravel beginners, and If you want to create CURD Application using jQuery Ajax then just need to follow given steps. In this simple ajax curd example, I have created products management with several options like:- Product Listing Add New Product Edit Product Delete Product you can create Curd operation using simple steps, After create successful example you will find layout as below. Step 1: Laravel Installation If you haven’t installed laravel in your system and want to fresh project then just run bellow command and get new Laravel project.

Step 2: Create items table and model In this step we have to create migration for products table using Laravel  php artisan command, so first fire bellow command:

After

read more >>
Laravel, PHP
Laravel Curd

In this post, I am going to explain how to create CURD (Create,Update,Read and Delete) operation with image in laravel 5+ from scratch. This post is very helpful for laravel beginners. In this CRUD application just need to follow all steps. I used resource route, validation, listing etc in this crud application example. After finish all step successfully, you will find output like as bellow image output. Step 1: Laravel Installation If you haven’t installed laravel in your system and want to fresh project then just run bellow command and get new Laravel project.

After clone laravel application, we also require to install laravelcollective/html for Form class,you can install laravelcollective/html class using composer just need to update composer.json file and add “laravelcollective/html”: “~5.0” in require section. after that changes run below command.

Step 2: Create items table and model In this step we have to create migration for items table

read more >>