final public function getMediasProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
{
return Movie::with(['table1:column1,column2,column3' => ['table2:column1,column2,column3']])
->withCount(['table3' => fn ($query) => $query->whereNull('column4')->whereNull('column5')])
->orderBy($this->sortField, $this->sortDirection)
->paginate($this->perPage);
}
with(['table1:column1,column2,column3' , 'table2:column1,column2,column3'])