Improved Software

Results 2 comments of Improved Software

This is expected behaviour and the purpose of the updated event. Adding in a refresh using the fresh() method will cause an extra query every time something is updated. So...

I pass the options from the DataTable class ``` public function dataTable($query) { $options = [ "block_id" => FarmBlock::pluck('id', 'name')->sortBy('name'), "variety_id" => FarmVariety::pluck('id', 'name')->sortBy('name'), ]; return datatables() ->eloquent($query) ->with('options', $options);...