For installation and detailed usage steps, please review the following guides:
You can follow these documents to better understand your package
A fully customizable package that seamlessly integrates the full power of Yajra DataTables with the modern Tailwind CSS and Alpine.js interface into your Laravel projects. Easily manage everything from server-side processing to rich column customization.
To add the package to your Laravel project via Composer:
composer require squipix/tailwind-datatables
You can publish the configuration file to modify the package's default settings:
php artisan vendor:publish --tag=squipix-tailwind-datatables-config
This command will copy the config/squipix-tailwind-datatables.php file to your project.
To publish the package's CSS files to your project's resources/css directory (to include in your own Tailwind pipeline):
php artisan vendor:publish --tag=tailwind-datatables-css
This command will copy the published CSS files under resources/css. You will need to import these files in your own resources/css/app.css file. A separate publishing command is not required for JavaScript files; they can be imported directly from the vendor directory.
You can examine our ready-to-use example projects to see how the package works with Livewire and Vue.js stacks. These projects are full-fledged Laravel applications demonstrating the installation and basic usage of the package.
Each example project manages its own dependencies and database.
git clone https://github.com/squipix/tailwind-datatables.git
cd tailwind-datatables
cd examples/vue
composer install # Install dependencies (automatically links main package)
npm install # Install frontend dependencies
cp .env.example .env # Create .env file
php artisan key:generate
php artisan migrate:fresh --seed # Create database and seed data
npm run dev # Start Vite development server
php artisan serve # Start Laravel development server
# Open http://localhost:8000/posts in your browser (or login)
cd ../livewire
composer install
npm install
cp .env.example .env
php artisan key:generate
php artisan migrate:fresh --seed
npm run dev
php artisan serve
# Open your Livewire page in the browser
Bug reports, feature requests, and code contributions are welcome. Please refer to the Contributing Guide.
The Squipix Laravel Tailwind DataTables package is released under the MIT License.
Inspired by Stripe's idempotency implementation.
For issues, questions, or contributions, please visit the GitHub repository.
How can I help you explore Laravel packages today?