Laravel-datatables: Class 'Yajra\DataTables\DataTables' not found

Created on 28 Jun 2018  路  6Comments  路  Source: yajra/laravel-datatables

I always get this exception
FatalThrowableError
Class 'Yajra\DataTables\DataTables' not found

My composer.json is
"require": {
"php": ">=5.6.4",
"jenssegers/mongodb": "^3.2",
"laravel/framework": "5.4.*",
"laravel/tinker": "~1.0",
"yajra/laravel-datatables-oracle": "8.7.0"
}

My server has php version is 7.1.1

I installed datatables as follows
composer requrire yajra/laravel-datatables-oracle:8.7.0

Please help

question

All 6 comments

This is my composer.json

"yajra/laravel-datatables-buttons": "^3.2",
"yajra/laravel-datatables-html": "^3.7",
"yajra/laravel-datatables-oracle": "~8.0"

You can go to the directory to see if there is ?
path is vendor\yajra\laravel-datatables-oracle\src\DataTables.php

@ChinaSor Thank you for the reply.
Yes I can see the vendor\yajra\laravel-datatables-oracle\src\DataTables.php
But still getting the same error.

If you can try composer dump-autoload effective?

Use sudo command as well

add to \config\app.php
Providers

Yajra\DataTables\DataTablesServiceProvider::class,
Yajra\DataTables\ButtonsServiceProvider::class,

aliases
'DataTables' => Yajra\DataTables\Facades\DataTables::class,

use Yajra\DataTables\Services\DataTable;

reference =
https://yajrabox.com/docs/laravel-datatables/master/installation
https://yajrabox.com/docs/laravel-datatables/master/buttons-installation

i hope can help you :)

run the following command
composer require yajra/laravel-datatables-buttons:^4.0 && php artisan vendor:publish --tag=datatables-buttons --force

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vipin733 picture vipin733  路  3Comments

Abdulhmid picture Abdulhmid  路  3Comments

jackrsantana picture jackrsantana  路  3Comments

Mopster picture Mopster  路  3Comments

alejandri picture alejandri  路  3Comments