Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Register 'laravel-trash-cleaner' service to resolve facade class error #2

Merged

Conversation

A909M
Copy link
Contributor

@A909M A909M commented Dec 17, 2024

Description

This PR uncommented the service registration for the laravel-trash-cleaner service in LaravelTrashCleanerServiceProvider.

Changes:

  • Uncommented the line to register the laravel-trash-cleaner service using $this->app->singleton().

Reason:

The service was not being registered in the service container, causing the "Target class does not exist" error when using the facade. This change ensures the facade works correctly by binding the service to the container.

WindowsTerminal_dHnFZrtNLl

@omaralalwi omaralalwi merged commit 181eba3 into omaralalwi:master Dec 17, 2024
@A909M A909M deleted the register-laravel-trash-cleaner-service branch December 17, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants