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