Ejemplo n.º 1
0
 /**
  * Find a partial type by ID.
  *
  * @param $id
  * @return null|TypeInterface
  */
 public function find($id)
 {
     return $this->model->find($id);
 }
Ejemplo n.º 2
0
 /**
  * Find a partial by it's slug.
  *
  * @param $slug
  * @return null|TypeInterface
  */
 public function findBySlug($slug)
 {
     return $this->model->where('slug', $slug)->first();
 }