{"record":{"id":"8f2fc547d6b78a2b","repo":"firefly-iii/firefly-iii","slug":"unauthenticated-8f2fc5","errorCode":null,"errorMessage":"Unauthenticated.","messagePattern":"Unauthenticated\\.","errorType":"exception","errorClass":"AuthenticationException","httpStatus":401,"severity":"error","filePath":"app/Models/BudgetLimit.php","lineNumber":74,"sourceCode":"     */\n    public static function routeBinder(self|string $value): self\n    {\n        if ($value instanceof self) {\n            $value = (int) $value->id;\n        }\n        if (auth()->check()) {\n            $budgetLimitId = (int) $value;\n            $budgetLimit   = self::where('budget_limits.id', $budgetLimitId)\n                ->leftJoin('budgets', 'budgets.id', '=', 'budget_limits.budget_id')\n                ->where('budgets.user_id', auth()->user()->id)\n                ->first(['budget_limits.*'])\n            ;\n            if (null !== $budgetLimit) {\n                return $budgetLimit;\n            }\n        }\n\n        throw new AuthenticationException();\n    }\n\n    public function budget(): BelongsTo\n    {\n        return $this->belongsTo(Budget::class);\n    }\n\n    /**\n     * Get all the notes.\n     */\n    public function notes(): MorphMany\n    {\n        return $this->morphMany(Note::class, 'noteable');\n    }\n\n    public function transactionCurrency(): BelongsTo\n    {\n        return $this->belongsTo(TransactionCurrency::class);","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/firefly-iii/firefly-iii/blob/fd8791d08d4d9e6467519a78048cd038e26b8878/app/Models/BudgetLimit.php#L56-L92","documentation":"Error \"Unauthenticated.\" thrown in firefly-iii/firefly-iii.","triggerScenarios":"Thrown at app/Models/BudgetLimit.php:74 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fd8791d08d4d9e6467519a78048cd038e26b8878","analyzedAt":"2026-08-17T02:14:53.848Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}