mapped[$this->index][$this->value])) { $budget = Auth::user()->budgets()->find($this->mapped[$this->index][$this->value]); } else { $budget = Budget::firstOrCreateEncrypted( [ 'name' => $this->value, 'user_id' => Auth::user()->id, 'active' => true, ] ); } return $budget; } }