eboye / laravel-nova-translation-editor

Laravel Nova Translation Editor
MIT License
8 stars 5 forks source link

Unable to prepare route [nova-vendor/laravel-nova-translation-editor/index] for serialization. Uses Closure. #1

Closed Leotrimlota closed 4 years ago

Leotrimlota commented 4 years ago

Hi there,

I was trying to run php artisan optimize when I got the following error message;

  LogicException  : Unable to prepare route [nova-vendor/laravel-nova-translation-editor/index] for serialization. Uses Closure.

  at /..../vendor/laravel/framework/src/Illuminate/Routing/Route.php:918
    914|     public function prepareForSerialization()
    915|     {
    916| 
    917|         if ($this->action['uses'] instanceof Closure) {
  > 918|             throw new LogicException("Unable to prepare route [{$this->uri}] for serialization. Uses Closure.");
    919|         }
    920| 
    921|         $this->compileRoute();

Is there a solution for this?

eboye commented 4 years ago

Hmm, never tried optimize. I'll investigate what is the cause of this.

eboye commented 4 years ago

This should fix it. I'll make a release later.

Leotrimlota commented 4 years ago

@eboye Thanks for request 👍