Ali Torabi
Ali Torabi
```php class OrderFood extends Model { protected $table = 'order_foods'; protected $fillable = [ 'order_id','food_id','quantity','food_price' ]; public function order() { return $this->belongsTo(Order::class); } public function food() { return $this->belongsTo(Food::class) ->with('translate');...
this issue does not fixed in v8 i should do change in my codes ?
on ordering 3 queries is executed ```php 1: bindings:[] query:"select count(*) as aggregate from (select '1' as `row_count` from `foods`) count_row_table" time:0.29 2: bindings:[] query:"select *, @rownum := @rownum +...
this query ```php query:"select * from `food_translator` where `lang` = ? and `food_translator`.`food_id` in (?)" ``` is for ```php public function translate() { return $this->hasOne(FoodTranslator::class,'food_id') ->where('lang',app()->getLocale()); } ``` that not...
thanks alot master :)
error is not fixed?
I fixed issue with edit EloquentDataTable class in namespace Yajra\DataTables ```php protected function joinEagerLoadedColumn($relation, $relationColumn) { $table = ''; $lastQuery = $this->query; foreach (explode('.', $relation) as $eachRelation) { $model =...
if a way would have existed that relation where clauses would applied as this it would very good
hi again master i am find another solve for this problem if we edit EloquentDataTable class in namespace Yajra\DataTables as this , It probably works ```php protected function joinEagerLoadedColumn($relation, $relationColumn)...