2
有了這個,我得到的物品數組:如何獲得他們沒有優先權的所有文章?
$unsortedArticles = $this->article->getAllCurentTranslation($language);
我的文章和優先級之間的關係:
public function priority()
{
return $this->hasOne('App\Models\HomepagePriority','article_id','id');
}
因此,如何我現在可以返回的文章,但只是他們不物品數組優先??
但我怎麼可以使用它在這個$ unsortedArticles = $這個 - >物品─> getAllCurentTranslation($語言); ? – None