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