S
S
Sergey Chazov2020-02-22 19:47:59
Laravel
Sergey Chazov, 2020-02-22 19:47:59

How to install infyom on Laravel 6?

I'm trying to put the INFYOM generator on Laravel 6 CRUD.
The generator itself seems to work. But when I try to go to the model page in the admin, it turns out that

Class 'Yajra\DataTables\Services\DataTable' not found


I understand why there is no this class. Because for Laravel 6, INFYOM installs version 9 of Yajra, in which the DataTable class was vilely replaced with Yajra \ DataTables \ DataTablesServiceProvider
If I try to put 7, for example, the version of Yajra through the composer, then they send me, with the words Conclusion: remove laravel/framework v6.16.0
Well, like, install another larka for yourself - we'll talk there.
Naturally, a simple replacement with Yajra\DataTables\DataTablesServiceProvider does not work. Then the curse looks something like this:
Unresolvable dependency resolving [Parameter #0 [ <required> $app ]] in class Illuminate\Support\ServiceProvider


Basically a dead end.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vism, 2020-02-22
@vism

Sad 2 days...
https://github.com/InfyOmLabs/laravel-generator/is...
in general, this class is only used in stubs, so you need to install the latest versions, read the documentation, and if you need to edit the stubs.

S
Sergey Chazov, 2020-02-23
@chazovs

In general, it turned out that the problem is solved by installing the "yajra/laravel-datatables-buttons" package,
adding Yajra\DataTables\ButtonsServiceProvider::class in the providers
and then php artisan vendor:publish --tag=datatables-buttons --force

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question