Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command "datatables:make" unknown? #3186

Open
anxgstadler opened this issue Oct 21, 2024 · 4 comments
Open

Command "datatables:make" unknown? #3186

anxgstadler opened this issue Oct 21, 2024 · 4 comments
Labels

Comments

@anxgstadler
Copy link

Summary of problem or feature request

I added the core datatables extension to a laravel project:
composer require yajra/laravel-datatables-oracle:"^11.0"

And then tried the command to create a new datatable:
php artisan datatables:make MyTest

Resulting in the error:
ERROR There are no commands defined in the "datatables" namespace.

I don't know if this is a little left-over from splitting the package into a core package and some smaller extensions, but there seems to be something missing here...

System details

  • PHP Version: 8
  • Laravel Version: 11.27.2
  • Laravel-Datatables Version: Oracle: 11.1.5
@anxgstadler
Copy link
Author

Update:

Not being able to use the artisan command to create a datatables, I went on to use the UsersDataTable source code as astarting point from here:
https://yajrabox.com/docs/laravel-datatables/11.0/quick-starter#setup-users-datatable

But this also does not work, because in the line use Yajra\DataTables\Services\DataTable; this class does not exist.

May I ask you to please update the documentation so it matches the new code? As it stands currently, especially for people who are using the package for the first time, the documentation has lots of errors and is hardly of any help.
Thanks! :-)

@yajra
Copy link
Owner

yajra commented Oct 23, 2024

Please use the all-in-one installer: composer require yajra/laravel-datatables. The make command is part of the laravel-datatables-buttons package.

@anxgstadler
Copy link
Author

anxgstadler commented Oct 23, 2024

Hi, Yajra,
thanks for your quick reply!
I will do as advised - although I went with only the core package (and HTML) as "buttons" is exactly the feature I will not need :-D

Copy link

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants