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
Class 'Yajra\Datatables\Facades\Datatables' not found #294
Comments
Change follwoing
to this
and try. |
Still get Error,
At the first time i install this version :
May be any way to reset configuration?? |
try this 'yajra\Datatables\DatatablesServiceProvider', remove ::class |
Still got error :(
|
I installed "yajra/laravel-datatables-oracle": "~5.0" |
|
hmm, I already change to
But it still not work.
It works now. Thanks for your support :) 👍 |
I'm actually still having this issue. Had to revert to 5 to get it to work, but I wouldn't say its fixed in 6. |
@shairozan, the Facade file was removed on v6.0 and an alias was automatically registered in the service provider. You need to replace this |
This problem still seems to exist . On a Laravel 5.1.29 install i had to change Yajra\Datatables\DatatablesServiceProvider::class to yajra\Datatables\DatatablesServiceProvider::class in the providers array before it worked. Version of yajra/laravel-datatables-oracle
[Symfony\Component\Debug\Exception\FatalErrorException] |
Your requirements could not be resolved to an installable set of packages. Problem 1 To enable extensions, verify that they are enabled in those .ini files: Installation failed, reverting ./composer.json to its original content. |
I occasionally get this message even when it has been working fine up to that point. For me, just running |
just delete all files inside a bootstrap->cache folder. And run your project. Bug fixed. |
Neither "yajra" nor "Yajra" works. I still have the error with Alaval 5.4 & Datatables v7. |
@idmeneo sorry for the inconvenience. What are steps have you done so far? Are using a fresh installation or upgrading a project? Some tips:
-- Edit -- |
Thx for the answer. I finally got it working by downgrading your module to v6.2 and updating all the other libraries. |
Try removing syntactic sugar operators like tilde and caret sign in composer.json. Because sometimes they do not allow the exact version to install. The same problem happened to me also. Then run,
Solved the issue for me. |
@wisnuvb Namespace and class name were updated on v8. Use |
right, I have not read the upgrade guide. once it's done. thank you |
On v8, Run |
Changing from v6.0 to v8.0 forced me to change config/app.php 'Datatables' => Yajra\Datatables\Facades\Datatables::class, to 'Datatables' => Yajra\Datatables\Datatables::class, and it worked fine afterwards. Also, if used to automatically un-escape html elements, you'd have to publish the vendor package and change config/datatables.php /*
* List of columns to be escaped. If set to *, all columns are escape.
* Note: You can set the value to empty array to disable XSS protection.
*/
'escape' => '*', to
|
@lexxyungcarter please see upgrade guide for ref. |
Namespace and class name were updated on v8. Use DataTables instead of Datatables. That worked |
@victorsteven's solution worked on a fresh Laravel 5.6 + Datatables 8.7.0 |
This is use Yajra\DataTables\Facades\DataTables; working fine from my side thanks |
I use composer require yajra/laravel-datatables-oracle command and change below line |
Use this: 'Datatables' => Yajra\DataTables\Facades\DataTables::class, // Datatable D and T should be capital. |
I got this error when I was trying to remove the package. To clear the error, go to boostrap > cache and clear everything |
Yajra\DataTables\DataTablesServiceProvider::class, in providers array use this one, it solved the issue for me |
Im facing same issue here. code works perfectly on local, but I take it to server and my entire app fails to bootstrap.
im really frustrated after 2hrs of trying things im seeing here :( |
After hrs of trying. I decided to re-upload local code which was working into my shared host server. and it works fine now. Thanks Yajra |
I have the same problem with laravel 7 . I execute: php artisan config:cache |
Hello, Why i get this error :
Cause i never update anything.
My app.php is :
How to fix that?
The text was updated successfully, but these errors were encountered: