SinghDigamber / laravel-yajra-datatables

Create datatable in Laravel
https://www.positronx.io/laravel-datatables-example/
20 stars 9 forks source link

DataTables Error When Following Tutorial Online #1

Open mattbylett opened 3 years ago

mattbylett commented 3 years ago

Hi Digamber

Thank you for your tutorial online ... I am having a problem with the DataTables Though getting the table to populate.

The error code I get is the Generic tn/7 server error (love the detailed hep here :) )

I check through the console ant I get the Following Ajax Error (see Image) Screenshot 2021-02-22 at 3 24 23 PM

This is a problem in my own project, and I have added to the thread on the following issue in the main repo Data Tables Repo Issue 2558

when I saw your tutorial I followed it precisely and ran into the same issue.

The Problem Line is this one : return DataTables::of($data)

I have tried importing the full facade use Yajra\DataTables\Facades\DataTables; which makes no differnce at all

Also I've triple checked that all of my database fields match in the script and that doesnt seem to be the probem.

Would you have any idea what I can try next?

Many Thanks in advance

Matt

mickser commented 3 years ago

https://datatables.net/manual/tech-notes/7

and check https://github.com/SinghDigamber/laravel-yajra-datatables/issues/2