I'm trying to implement a datatable into my laravel project, I installed yajra datatables in the project and everything ..
I add these to the app.php :
Yajra\DataTables\DataTablesServiceProvider::class,
'DataTables' => Yajra\DataTables\Facades\DataTables::class,
but when I try to make a new datatable using the command
php artisan datatables:make Companies
I get this error : There are no commands defined in the "DataTables" namespace.
any idea how to solve this !!
To fix this, you need to install yajra/laravel-datatables-buttons
so run this command:
composer require yajra/laravel-datatables-buttons
reference: https://github.com/yajra/laravel-datatables/issues/1392
If error:
composer require yajra/laravel-datatables-buttons
You can try:
composer require yajra/laravel-datatables-buttons:*
it works on yajra/laravel/datatables-oracle:9.0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With