reziamini / laravel-easypanel

A beautiful and flexible admin panel creator based on Livewire for Laravel
https://easypanel.netlify.app/getting-started
MIT License
619 stars 105 forks source link

I could not create new crud #19

Closed shankar-bavan closed 3 years ago

shankar-bavan commented 3 years ago

I got same issue. laravel/framework: "^7.24", rezaamini-ir/laravel-easypanel: "^1.5",

php artisan panel:config User

BadMethodCallException 

Method EasyPanel\Commands\Actions\MakeCRUDConfig::qualifyModel does not exist.

at vendor/laravel/framework/src/Illuminate/Support/Traits/Macroable.php:103

Originally posted by @shankar-bavan in https://github.com/rezaamini-ir/laravel-easypanel/issues/11#issuecomment-847569771

reziamini commented 3 years ago

Thanks for your report! I will check it and release a force version as soon as possible.

reziamini commented 3 years ago

@shankar-bavan A new version was released. Could you please update Easypanel then tell the result?

shankar-bavan commented 3 years ago

@rezaamini-ir Thank you for the update It is working for this command

php artisan panel:config User

same error for below command

php artisan panel:crud user


  Method EasyPanel\Commands\CRUDActions\MakeCreate::qualifyModel does not exist.

  at vendor/laravel/framework/src/Illuminate/Support/Traits/Macroable.php:103
     99|      */
    100|     public function __call($method, $parameters)
    101|     {
    102|         if (! static::hasMacro($method)) {
  > 103|             throw new BadMethodCallException(sprintf(
    104|                 'Method %s::%s does not exist.', static::class, $method
    105|             ));
    106|         }
    107| 

  • Bad Method Call: Did you mean EasyPanel\Commands\CRUDActions\MakeCreate::qualifyClass() ? 
reziamini commented 3 years ago

@shankar-bavan It was fixed in the new release. Update Easypanel to 1.5.4 version.

Thanks for your report! I guess the qualifyModel method has been added from one of the Laravel 7 versions.

shankar-bavan commented 3 years ago

@rezaamini-ir I updated. I think changes not merged with master?

reziamini commented 3 years ago

Use the below command:

composer require rezaamini-ir/laravel-easypanel --no-cache
shankar-bavan commented 3 years ago

I got this error

Class 'EasyPanel\Commands\CRUDActions\Str' not found

reziamini commented 3 years ago

Was fixed. Retry the composer command.

shankar-bavan commented 3 years ago

one more question. I could not able to run php artisan route:cache after install this package Is this fixable ?

LogicException 

  Unable to prepare route [admin/logout] for serialization. Uses Closure
reziamini commented 3 years ago

It will be fixed soon in the new release.

shankar-bavan commented 3 years ago

@rezaamini-ir when I run this command, application got stuck and after few min, I got Killed message

php artisan panel:crud user

shankar-bavan commented 3 years ago

@rezaamini-ir when I run this command, application got stuck and after few min, I got Killed message

php artisan panel:crud user

@rezaamini-ir any solution for this?

reziamini commented 3 years ago

Please add some attachment.

shankar-bavan commented 3 years ago

@rezaamini-ir after run this command, laptop frozen for 3 second and got killed message

image

reziamini commented 3 years ago

@shankar-bavan Do you have this problem just with this command? What's your OS?

shankar-bavan commented 3 years ago

@rezaamini-ir yes. only with this command. I use ubuntu

I'm using easypanel with Larave 8 project without any issues. I got this issue only with Laravel 7 project.

reziamini commented 3 years ago

Does it same for all of the CRUD configs in Laravel 7 or just it appears for one CRUD setting?

shankar-bavan commented 3 years ago

it is coming for php artisan panel:crud

only on laravel 7

reziamini commented 3 years ago

@shankar-bavan What if you use -f flag? What does your CRUD config file contain?

shankar-bavan commented 3 years ago

I tried with -f. same issue config file is default content. currently I removed from laravel 7 project. I decided to use it with only laravel 8

Thank you again for your support :)