code = $code; } /** * Get the view / contents that represent the component. * * @return \Illuminate\Contracts\View\View|string */ public function render() { $code = ($this->code) ? $this->code : default_currency(); $this->currency = config('money.currencies.' . $code . '.name'); return view('components.index.currency'); } }