Skip to content

Artisan error: A facade root has not been set #1004

@akbariandev

Description

@akbariandev

Scribe version

5.2.1

PHP version

8.4.8

Laravel version

12.13.0

Scribe config

type => "external_laravel"
theme => "scalar"
laravel.docs_url => "/api/documentation"

What happened?

I used scribe on my local project (Windows) and it works well. But when I push it on my server (Ubuntu 24) it prevent to run any composer or artisan command and every time I will give below error:

@php artisan package:discover --ansi
PHP Fatal error:  Uncaught RuntimeException: A facade root has not been set. in /vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:358

Consider I can't stop the error until I remoove the /config/scribe.php.

Docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions