Zielklasse [Dateien] existiert nicht
Posted: 12 Apr 2025, 23:15
Ich möchte meinen Code einen süßen Alarm hinzufügen, aber wenn ich dies tue, gibt es mir diesen Fehler, ich verwende Laravel 12 < /p>
Code: Select all
PS C:\xampp\htdocs\cp_segar_jegad> php artisan sweetalert:publish
Illuminate\Contracts\Container\BindingResolutionException
Target class [files] does not exist.
at vendor\laravel\framework\src\Illuminate\Container\Container.php:906
902▕
903▕ try {
904▕ $reflector = new ReflectionClass($concrete);
905▕ } catch (ReflectionException $e) {
➜ 906▕ throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
907▕ }
908▕
909▕ // If the type is not instantiable, the developer is attempting to resolve
910▕ // an abstract type such as an Interface or Abstract Class and there is
1 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(Spatie\LaravelIgnition\IgnitionServiceProvider))
2 vendor\laravel\framework\src\Illuminate\Container\Container.php:904
ReflectionException::("Class "files" does not exist")`
< /code>
Ich habe beide dieses Code an mein Terminal gesetzt und jetzt hat es diesen Fehler, bitte helfen Sie! < /p>
composer require realrashid/sweet-alert
RealRashid\SweetAlert\SweetAlertServiceProvider::class,