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