Laravel-datatables: Class 'Yajra\Datatables\Services\DataTable' not found

Created on 14 Sep 2017  ·  12Comments  ·  Source: yajra/laravel-datatables

I'm having a problem when using Yajra datatables with laravel. It gives me an error "Class 'Yajra\Datatables\Services\DataTable' not found"

System details

  • Operating System: Windows 10
  • PHP Version: 5.6.4
  • Laravel Version: 5.4.*
  • Laravel-Datatables Version: 1.0
documentation question

Most helpful comment

Try Yajra\DataTables\Services\DataTable
----------------^
Datatables to DataTables
See the upgrade guide

All 12 comments

Try Yajra\DataTables\Services\DataTable
----------------^
Datatables to DataTables
See the upgrade guide

Still not working

@waleedyounis What version are you using?

Yes. I re-installed the plugin along with the buttons plugin and now it's working.
Thanks a lot for the help

@the94air Thanks. you are the best.

@Hamzeh-Jamalon I am glad it helped.

I'm having a same problem when using Yajra datatables with laravel 5.6. project. It gives me an error "Class 'YajraDatatables\Services\DataTable' not found"
System details
Operating System: Windows 10
PHP Version: 7.2.4
Laravel Version: 5.6.*

following the guide upgrade I have this other error in my terminal
"Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for yajra/laravel-datatables-oracle 7.0 -> satisfiable by yajra/laravel-datatables-oracle[v7.0.0].
- Conclusion: remove laravel/framework v5.6.38
- Conclusion: don't install laravel/framework v5.6.38
- yajra/laravel-datatables-oracle v7.0.0 requires illuminate/view 5.4.* -> satisfiable by illuminate/view[5.4.x-dev, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9] "

how to resolve it ????

@khaleo The package name space is not correct
Yajra\Data(t)ables\ to Yajra\Data(T)ables\
Checkout my answer above.

thk u but i don't understand.Explain plz what i have to do in my laravel project (laravel 5.6)

same error
ubuntu 16.04 version

Try Yajra\DataTables\Services\DataTable
----------------^
Datatables to DataTables
See the upgrade guide

Link doesn't seems to be accessible. Can you please check it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

macnux picture macnux  ·  3Comments

Mopster picture Mopster  ·  3Comments

shadoWalker89 picture shadoWalker89  ·  3Comments

sangnguyenplus picture sangnguyenplus  ·  3Comments

josiahke picture josiahke  ·  3Comments