Run the following command to install Ginkelsoft DataTables via Composer:
composer require ginkelsoft/datatables
To customize the default views, publish them using:
php artisan vendor:publish --provider="Ginkelsoft\DataTables\DataTableServiceProvider" --tag=views
After publishing, the views will be located in:
resources/views/vendor/datatables/
This package uses Tailwind CSS and other frontend dependencies. Run the following commands to compile your assets:
For development mode (automatic recompilation on file changes):
npm run dev
For production build (optimized assets):
npm run build
For continuous watching of changes:
npm run watch
⚠️ Ensure you have Node.js & NPM installed before running these commands.
If you ever need to re-publish the views, simply run:
php artisan vendor:publish --provider="Ginkelsoft\DataTables\DataTableServiceProvider" --tag=views
This will overwrite existing files in resources/views/vendor/datatables/
.