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

Target class [toastr] does not exist. #699

Open
nurnobishanto opened this issue Feb 22, 2023 · 1 comment
Open

Target class [toastr] does not exist. #699

nurnobishanto opened this issue Feb 22, 2023 · 1 comment

Comments

@nurnobishanto
Copy link

Illuminate \ Contracts \ Container \ BindingResolutionException
PHP 8.1.13
Laravel 10.1.0
Target class [toastr] does not exist. in cPanel but Localhost is working

@aanimation
Copy link

Add these items

Yoeunes\Toastr\ToastrServiceProvider::class,
Flasher\Laravel\FlasherServiceProvider::class,

to providers

and

'Toastr' => Yoeunes\Toastr\Facades\Toastr::class,
'Flasher' => Flasher\Laravel\Facade\Flasher::class,

to aliases

in config/app.php manually

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

No branches or pull requests

2 participants