{"record":{"id":"3eab25a8938a9abb","repo":"filamentphp/filament","slug":"laravel-spark-is-not-installed","errorCode":null,"errorMessage":"Laravel Spark is not installed.","messagePattern":"Laravel Spark is not installed\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/spark-billing-provider/src/Http/Middleware/VerifySparkBillableIsSubscribed.php","lineNumber":13,"sourceCode":"<?php\n\nnamespace Filament\\Billing\\Providers\\Http\\Middleware;\n\nuse Filament\\Facades\\Filament;\nuse LogicException;\nuse Spark\\Http\\Middleware\\VerifyBillableIsSubscribed;\n\n// We cannot explicitly require Spark through Composer, as Stripe\n// and Paddle integrations have different packages associated\n// with them. As such, we must check if this class exists.\nif (! class_exists(VerifyBillableIsSubscribed::class)) {\n    throw new LogicException('Laravel Spark is not installed.');\n}\n\nclass VerifySparkBillableIsSubscribed extends VerifyBillableIsSubscribed\n{\n    protected function redirect(string $billableType): string\n    {\n        return Filament::getTenantBillingUrl();\n    }\n}\n","sourceCodeStart":1,"sourceCodeEnd":23,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/spark-billing-provider/src/Http/Middleware/VerifySparkBillableIsSubscribed.php#L1-L23","documentation":"Error \"Laravel Spark is not installed.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/spark-billing-provider/src/Http/Middleware/VerifySparkBillableIsSubscribed.php:13 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":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}