pluck('name', 'code')->toArray(); if (array_key_exists($value, $currencies)) { $status = true; } $currency_code = $value; return $status; }, trans('validation.custom.invalid_currency', ['attribute' => $currency_code]) ); } /** * Register any application services. * * @return void */ public function register() { // } }