Laravel Inertia Datatable
Learn how to implement server-side pagination, filtering, live search, sorting, and limit the number of records displayed per page in your Laravel application. Enhance performance by fetching only the required data while allowing users to filter results, search in real-time, sort data, and control the number of entries displayed per page.
Stack
- Year
- 2024
Laravel Inertia DataTable
Notice
This repository contains the original project-based implementation.
A standalone Composer package is also available at: https://github.com/raprmdn/laravel-inertia-datatables
This project will be updated to use the package in a future release.
Server-side pagination, filter, live search, sort, and limit data to be displayed on each page.
Source Code : GitHub
Features
- Server-side pagination
- Live search
- Sort
- Limit
- Filter
Tech Stack
Prerequisites
Installation and Usage
Clone the repository
git clone https://github.com/raprmdn/laravel-inertia-datatable.gitcd into the project directory
cd laravel-inertia-datatableInstall dependencies
# Laravel
composer install
# InertiaJS and ReactJS
npm installcopy .env.example to .env and set your database configuration
cp .env.example .envGenerate an application key
php artisan key:generateRun the database migrations
php artisan migrateSeed the database
php artisan db:seedStart the local development server
# Laravel
php artisan serve
# InertiaJS and ReactJS
npm run devScreenshots

