How to Play with Data Using Laravel Collection Methods

laravel-collection-method-example

This tutorial explains about how to work with Laravel collection with Eloquent. I will provide all popular methods of laravel collection. You can convert any PHP array data into the collection and vice-versa as well. The Illuminate\Support\Collection class provides a fluent, convenient wrapper for working with arrays of data into Laravel application. The Laravel Eloquent […]

Continue reading


Laravel Eloquent Queries with Eager Loading

Laravel Eloquent has many in-built functionalities for data layer, The one of them is eager loading on dataset. The Eloquent help to solve N+1 queries problem.The eager loading can drastically increase the performance of your application. The eager work with relational data set, that mean you need to define relational between two tables or many […]

Continue reading


Simple Ajax Pagination with PHP

ajax-pagination-php

In previous tutorial we have learn Simple tutorial of pagination in php, here we will learn php pagination with ajax.now days we are using ajax functionality for each request.We are using jQuery library for Ajax request and MySQL for database. We have following files: 1- db.php : This file contains db connection information. 2- pagination.php […]

Continue reading