aabadawy/livewire-datatable

dev-main 2023-07-03 18:26 UTC

README

This package can be used to fetching the data from different data sources,
And previewing it in nice datatable.

Example

use App\User;

Class UserDatatable  extends DatatableComponent {
    
    public function dataSource():Builder
    {
        return User::query()  
    }
}

Installation

You can install the package via composer:

composer require aabadawy/livewire-datatable

You can publish and run the migrations with:

php artisan vendor:publish --tag=":package_slug-migrations"

You can publish the config file with:

php artisan vendor:publish --tag=":package_slug-config"

This is the contents of the published config file:

return [
];

Optionally, you can publish the views using

php artisan vendor:publish --tag=":package_slug-views"

Usage

$variable = new VendorName\Skeleton();
echo $variable->echoPhrase('Hello, VendorName!');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.