public function findBySlug($slug) { return $this->createModel()->newQuery()->where('slug', $slug)->first(); }