mercredi 30 novembre 2016

How to get all articles that they dont have priority?

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??



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire