Skip to content
New issue

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

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

Already on GitHub? # to your account

Class 'Laravel\Nova\Nova' not found #3

Open
ahmedsaad7720 opened this issue Apr 21, 2021 · 1 comment
Open

Class 'Laravel\Nova\Nova' not found #3

ahmedsaad7720 opened this issue Apr 21, 2021 · 1 comment

Comments

@ahmedsaad7720
Copy link

when write command composer require tapp/select-country-code it gives me this error.

 Class 'Laravel\Nova\Nova' not found

  at C:\xampp\htdocs\niceOne\vendor\tapp\select-country-code\src\FieldServiceProvider.php:18
     14▕      * @return void
     15▕      */
     16▕     public function boot()
     17▕     {
  ➜  18▕         Nova::serving(function (ServingNova $event) {
     19▕             Nova::script('select-country-code', __DIR__.'/../dist/js/field.js');
     20▕             Nova::style('select-country-code', __DIR__.'/../dist/css/field.css');
     21▕         });
     22▕

  1   C:\xampp\htdocs\niceOne\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:36
      Tapp\SelectCountryCode\FieldServiceProvider::boot()

  2   C:\xampp\htdocs\niceOne\vendor\laravel\framework\src\Illuminate\Container\Util.php:40
      Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

@swilla
Copy link
Member

swilla commented Oct 6, 2021

@amedsaad this package requires Laravel Nova, you must have that installed first. Do you have it installed?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants