Installation

1️⃣ Install the Package

Run the following command to install Ginkelsoft DataTables via Composer:

composer require ginkelsoft/datatables

2️⃣ Publish the Package Views (Optional)

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/

3️⃣ Build Frontend Assets

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.


4️⃣ Re-publish Views (If needed)

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/.


📌 Preview

image