@ilhammerug Based on my understanding, such kinds of error occurs when you are trying to use a Laravel facade before the application has been fully bootstrapped. Facades are essentially static interfaces to classes in the service container, and they rely on the Laravel service container to be available in order to function properly.
To fix this issue, you will need to ensure that your application has been fully bootstrapped before you attempt to use any facades. This usually means that you need to move any code that uses facades to a place where it will be executed after the service container has been initialized.