Search code examples
javascriptajaxlaravelyajra-datatableinfyom

Laravel - Yajra DataTable build with Infyom package does not show data


I already use Laravel 8 with Yajra DataTable et wanted to test Infyom Laravel-Generator that seems to be a great package.

I created my first test app and generated a Yajra DataTable. I see the datatable page, I was able to create a first record, the table in the database is updated, but the page shows always no record even if I refresh it.

And there is no Search input on the page.

I see nothing in the Laravel logs. When I open my browser (firefox) in dev mode, I see no XHR request that seems to be abnormal since I see such a request on a website with datatable build without Infyom package.

Having a look in the source of the html page, no datable script is present!

So the pb should come from the genaration script, I used this cde :

php artisan infyom:scaffold Es5 --fromTable --tableName=es5 --datatables=true

I'll appreciate any help to debug/explai this.

Thanks in advance.

PS : Let me know if you want me to share some code, but now I don't know which part should be useful.


Solution

  • I forgot to publish datatable add_on html & buttons

    and found the solution here

    https://github.com/InfyOmLabs/laravel-generator/issues/84