With this i get an array of articles :
$unsortedArticles = $this->article->getAllCurentTranslation($language);
I have this relationship between article and priority:
public function priority()
{
return $this->hasOne('App\Models\HomepagePriority','article_id','id');
}
So how can i now return an array of articles but just articles that they dont have priority??
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2gkLpiE
via IFTTT
Aucun commentaire:
Enregistrer un commentaire