setting = app(Setting::class); } /** * Returns count of setting. * * @param array $filter * * @return int */ public function count() { return 0; } /** * Find setting by slug. * * @param array $filter * * @return int */ public function setting($slug) { return $this->setting ->findBySlug($slug) ->toArray(); } }