I need to eager load relationship within laravel policy The problem is i use the laravel policy inside yajra-datatable which will load it (the policies) line by line Here’s the code looks like : and i use it in my yajra-datatable like so : so every line will load the relation again and again I’m expecting more efficient way to
Tag: yajra-datatable
Yajra/Jquery datatable how to exclude records based on condition
How can I exclude data based on my condition on the addColumn function? What I tried is this but it will include records that are > 0 On the frontend side, I also tried Now it hides the data but the pagination is showing for all the data. As you can see in the image below. I got 3 records
Laravel Yajra Datatables [object Object],[object Object] Error
Recording data in array format to database workers column. I would then return this data in the appropriate JSON format. My problem is just getting the spname values from the nested array in the …
How to editColumn on a relationship column in Laravel Yajra DataTables
I’m using Laravel 6 with Yajra Datatable. I’m creating a “SessionDataTable” on a Session Model. This model has a Patient relationship class Session extends Model { public function patient() …