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

Error while installing package #7

Closed
felloz opened this issue Jul 19, 2020 · 4 comments
Closed

Error while installing package #7

felloz opened this issue Jul 19, 2020 · 4 comments

Comments

@felloz
Copy link

felloz commented Jul 19, 2020

...

@felloz
Copy link
Author

felloz commented Jul 19, 2020

I use composer require and get this error:

@php artisan package:discover --ansi

   Error

  Class 'Laravel\Nova\Nova' not found

  at E:\Laravel\unlayer-laravel\vendor\idf\nova-unlayer-field\src\ServiceProvider.php:13
     9| {
    10|     /** @inheritDoc */
    11|     public function boot(): void
    12|     {
  > 13|         Nova::serving(function () {
    14|             Nova::script('nova-unlayer-field', __DIR__.'/../dist/js/field.js');
    15|         });
    16|
    17|         $this->publishes([

  1   E:\Laravel\unlayer-laravel\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:37
      IDF\NovaUnlayerField\ServiceProvider::boot()

  2   E:\Laravel\unlayer-laravel\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:37
      call_user_func_array([])
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json to its original content.

@felloz felloz changed the title what namespace should i use to work with Unlayer class Error while installing package Jul 19, 2020
@alies-dev
Copy link
Member

Hello @felloz
You need to install Nova before installing this package

@felloz
Copy link
Author

felloz commented Aug 13, 2020

Laravel Nova its a payed package right?

@pawelmysior
Copy link

@felloz yes.

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

3 participants