Esempio n. 1
0
 /**
  * Find a post by it's string ID.
  *
  * @param $id
  * @return null|PostInterface
  */
 public function findByStrId($id)
 {
     return $this->model->where('str_id', $id)->first();
 }
Esempio n. 2
0
 /**
  * Find man posts by tag.
  *
  * @param      $tag
  * @param null $limit
  * @return EntryCollection
  */
 public function findManyByTag($tag, $limit = null)
 {
     return $this->model->where('tags', 'LIKE', '%' . $tag . '%')->paginate($limit);
 }