reziamini / laravel-easypanel

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

Some file are missing #39

Closed webtasty closed 2 years ago

webtasty commented 2 years ago

Hi, I'm trying to install the package but some errors occurs, i've laravel/framework ^8.65, rezaamini-ir/laravel-easypanel ^1.8, breeze for login manager and below all step executed:

composer require laravel/laravel laravel-easypanel.dev.local
composer require laravel/breeze --dev
php artisan breeze:install
npm install && npm run dev
composer require rezaamini-ir/laravel-easypanel

Here i've created sqlite db, added is_superuser type boolean on user migration, create a seed wirth only one user as admin, next steps:

php artisan panel:install
php artisan migrate:fresh --seed
php artisan panel:add 1

I see the panel when i go to /admin, but if i try to create CRUDs from panel and i've got an error

Route  admin user read  not defined (View C Users Cutrone laragon www larvel-easypanel

So i try to perform crud from console and i run:

php artisan make:model -crfm Article
php artisan panel:config Article

This return message:

Article config file was created for Article model You can manage it in : app/CRUD/ArticleComponent.php and then run

php artisan panel:crud article

but i've got this other error

route_error

In other issue posted i've seen that the folder structure after package installation are bit different, in the resource/view folder i've only vendor, and i can't see the cruds for the user, the attachments below show up my folder structure after run all of the commands above.

VScode_structure01 VScode_structure02 VScode_structure03

And another thing is that if i try to run php artisan panel:migration and then i run php artisan migrate an then set 'todos' => true to config/easy_panel.php i've got this

SQLSTATE HY000  General error 1 no such table todos (SQL select count( ) as aggregate

What can i do for this? Thank you!

reziamini commented 2 years ago

Do you use 1.8.1 version with GUI?

webtasty commented 2 years ago

No, i have the 1.8.0 installed, but if i try to add version constraint to composer.json to 1.8.1 i've got this error: Your requirements could not be resolved to an installable set of packages..

How can i update package? Thanks.

reziamini commented 2 years ago

Something has a conflict with the new version. Please add more detail of the error or re-install package with the new laravel project.

webtasty commented 2 years ago

I've tested on fresh laravel installation, i've tried to update package from command with composer update rezaami-ir/laravel-easypanel:"^1.8.1"

commposer-update-laravel-easypanel

And i have add ^1.8.1 version constraint to composer.json and try to run composer update

commposer-update-json-laravel-easypanel

From both clear laravel and easypanel installation which command i should run for update package to 1.8.1? Thank you

reziamini commented 2 years ago

Hmm, please execute this command:

composer update rezaamini-ir/laravel-easypanel --no-cache
webtasty commented 2 years ago

Oh... great! Now it's work, but only from GUI, from shell cruds creation throw an exception, but now i can see the package, good!

Thanks for help!