Monthly Archives: July 2019

create-load-more-ajax-pagination-in-laravel-5

Create load more pagination with ajax in laravel | Laravel Tutorials

Hello World, Today i am going to create load more pagination with ajax in laravel. In this tutorial, we will create a product list example in which we will show product list with load more button. When we will click on the load more button the more products will load at the bottom of current list without reloading the page. If all products has been loaded then load more button will hide. So lets start this tutorial.

I have divided this tutorials into followings steps:

  • Create product model and migration
  • Table schema setting for product data
  • Generate dummy data for products
  • Create Product Controller
  • Routes Setting
  • Create product list template to show default products
  • Implement load more pagination code
  • Route Setting
  • Product Controller Setting
  • Run the example application

Continue reading

how-to-create-pagination-in-laravel

Create pagination in laravel

Hello World, Today i am going to create pagination in laravel. In this laravel tutorial, we will implement simple bootstrap 4 style pagination. For this example, i will extends my previous tutorial in which i have implemented ajax working in laravel.

I have divided this tutorial into following parts:

  • Fetch data according to pagination in controller
  • Setup route for showing all data
  • Create template to show data with pagination

Continue reading

implement-search-with-laravel

Implement search in laravel

Hello World, Welcome to my website. Today i am going to implement search in laravel. In this tutorial, I will extends my previous tutorial. My previous four laravel tutorials are interconnected with each other. I want to share my knowledge with example so that i am following my previous tutorial because in my previous tutorials i an working on blog application. In this tutorial, we will implement search with url parameter and count the total search result.

I have divided this tutorial into following parts,

  • Create search form
  • Implement search with controller
  • Run the project

Continue reading

working-with-form-in-laravel

Working with form in laravel

Hello World, Welcome to this website. Today i am going to create a tutorial in which we will create form and submit form data in database with validation in laravel. In my recent tutorials, I am creating a blog application.In this tutorial, i will implement the add comment section in this blog application. so lets start to working with form in laravel.

I have divided this tutorial in following steps,

  • Create Add Comment form in post detail page
  • Setup Route to submit the comment form
  • Setup Post Controller to submit form and save data in database
  • Run the project

Continue reading

Model Relationhsip in Laravel

Hello World, Today i am going to discuss model relationship in laravel. We will extends our previous tutorial in which we fetch data from database with ajax in laravel. In previous tutorial, We are fetching posts from database. In this tutorial, We will add comments in database to specific post and then fetch specific post comments with One to Many Relationship.

I have divided this tutorial in following steps:

  • About model relationship
  • About eloquent ORM
  • One to Many Relationship
  • Define comment model
  • Define One to Many¬†relationship
  • Fetch specific post comments with model relationship in post controller
  • Create post detail blade template
  • Add some dummy comments with laravel factory
  • Run the project

Continue reading

fetch-data-from-database-with-ajax-in-laravel

Fetch data from database with ajax in laravel

Hello World, Welcome to my website. Today i am going to discuss about ajax and laravel. In this tutorial, we will learn how to fetch data from database with ajax in laravel. In this tutorial, we will extend the previous tutorial, how to work with ajax in laravel. In the previous article, we have implemented ajax on static data. In this, we will fetch data from database.

I have divided this tutorial in followings steps:

  • Database Connectivity
  • Create Modal and Migrations
  • Add Dummy Data in database
  • PostController Setting
  • Run the project

Continue reading

How to work with ajax in laravel

Hello World, Today i am going to discuss that how to work with ajax in laravel. In this tutorial, We will create simple example to perform ajax working in laravel. In this example, We will click on a button then load the data with jquery ajax technology and show in the html div element. I hope you will learn and enjoy this tutorial.

Continue reading