Laravel collection manipulation, filtering and pagination

In this tutorial we’ll look into a couple of important functions to manipulate or filter out data from a Laravel collection along with their impact on pagination. First, we’ll setup a Laravel 9 app with relevant data, routes and view, then we’ll use collection’s map() and filter() functions to demonstrate their functionality and pagination behavior … Read more

Using faker in Laravel 9 to generate test / dummy data

It’s obviously cumbersome to enter all the data in the tables in your app for testing purposes. That’s where factories and faker come handy in generating tons of data on the fly. So, in this tutorial we’ll use factory and faker in Laravel 9 in order to generate fake / dummy data for testing purposes. … Read more

Simple search in Laravel 9 app using Livewire

In previous article we employed Fetch API to make AJAX calls from within Alpine.js in order to dynamically update the data table from backend database. Now let’s make life easier by introducing Livewire. In this article, we’ll incorporate simple search capability utilizing Livewire component in Laravel 9 app. So, let’s buckle up! Laravel 9.x requires … Read more

Simple search in Laravel 9 app using Alpine.js

In this tutorial we’ll build simple search / filter capability using Alpine.js in a Laravel 9 app, so that when you start typing in the search input field, the data presented in the data table is filtered in accordance with the input. Laravel 9.x requires a minimum PHP version of 8.0. This tutorial assumes that … Read more

Spatie Permission in Laravel 9 app using Breeze

In this tutorial we’ll create a Laravel 9 app using Breeze and then we’ll incorporate Spatie Permission for managing roles and permissions. Laravel 9.x requires a minimum PHP version of 8.0. This tutorial assumes that you are using Linux, MacOS or WSL on Windows and Node.js, Composer and PHP 8 along with required modules i.e … Read more

Laravel 9 CRUD app using VILT stack

In this tutorial we’ll create Laravel 9 CRUD app using VILT (Vue Inertia Laravel Tailwind) stack. Laravel 9.x requires a minimum PHP version of 8.0. This tutorial assumes that you are using Linux, MacOS or WSL on Windows and Node.js, Composer and PHP 8 along with required modules i.e bcmatch, sqlite, mbstring, xml, zip, gd, … Read more

Laravel 9 tutorial using Bootstrap 5

In this tutorial we’ll create Laravel 9 CRUD app with classic views utilizing Bootstrap 5 along with JQuery (the good ol’ days!). Laravel 9.x requires a minimum PHP version of 8.0. This tutorial assumes that you are using Linux, MacOS or WSL on Windows and Node.js, Composer and PHP 8 along with required modules i.e … Read more

Laravel 9 tutorial using Breeze

In this tutorial we’ll create Laravel 9 CRUD app using default Breeze starter kit. Laravel 9.x requires a minimum PHP version of 8.0. This tutorial assumes that you are using Linux, MacOS or WSL on Windows and Node.js, Composer and PHP 8 along with required modules i.e bcmatch, sqlite, mbstring, xml, zip, gd, mcrypt are … Read more