laravel-yajra-datatables
laravel-yajra-datatables copied to clipboard
DataTables Error When Following Tutorial Online
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)
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
https://datatables.net/manual/tech-notes/7
and check https://github.com/SinghDigamber/laravel-yajra-datatables/issues/2