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

In laravel 8 fresh installation it simpli does not work... #4

Closed tnatanael closed 3 years ago

tnatanael commented 3 years ago

As the title, i tryed everything, offcourse something is missing in the tutorial...

reziamini commented 3 years ago

Could you please attach the error message as a photo?

tnatanael commented 3 years ago

No erros, the admin route simpli does not exists

reziamini commented 3 years ago

You mean you get 404 error?

tnatanael commented 3 years ago

Yes! 404 on /admin route

reziamini commented 3 years ago

I think your installation has been failed. Because after registering Service Provider routes will be registered. Remove the package with composer then reinstall it with --no-cache flag.

tnatanael commented 3 years ago

Same behavior here... 404 for /admin route.

I also reinstalled the package with php artisan panel:install and got success message

I see no routes registered on routes/web.php is this expected?

image

reziamini commented 3 years ago

I said reinstall with composer not artisan command

panel:install install front end dependency and components first remove package: composer remove rezaamini-ir/laravel-easypanel then : composer require rezaamini-ir/laravel-easypanel --no-cache

tnatanael commented 3 years ago

Sure ive done this too: composer remove rezaamini-ir/laravel-easypanel And: composer require rezaamini-ir/laravel-easypanel --no-cache

tnatanael commented 3 years ago

I said reinstall with composer not artisan command

panel:install install front end dependency and components first remove package: composer remove rezaamini-ir/laravel-easypanel then : composer require rezaamini-ir/laravel-easypanel --no-cache

Also done, same problem...

reziamini commented 3 years ago

Have you updated Laravel version? Tell me your Laravel version

tnatanael commented 3 years ago

Laravel 8 default fresh installation, latest version!

reziamini commented 3 years ago

I checked it and there was no problem. You may have a conflict in your project with routes or service providers.

J87NL commented 3 years ago

@tnatanael, I thaught the same, untill I manually added a is_superuser column to my users-table (type int with length 1). This isn't done by migrations. I tried the php artisan panel:add [user_id] command but this didn't work for me, so I manually changed the is_superuser to value 1, then /admin works.

Steps from scratch:

  1. composer global require laravel/installer
  2. laravel new [project-folder-name] --jet
  3. cd [project-folder-name]
  4. composer require rezaamini-ir/laravel-easypanel
  5. php artisan panel:install
  6. Create database + user and update credentials in .env
  7. php artisan migrate
  8. npm install && npm run dev
  9. Register a new user using /register
  10. Manually add an is_superuser-column to your users-table and set value to '1' for your user.
  11. Go to /admin and see if it works.
  12. Bonus: update config/easy_panel.php and set todo to true
reziamini commented 3 years ago

@J87NL Thanks for your answer, I think some users don't add is_superuser to the User model as a fillable field and maybe It's because of that! And also you have to add is_superuser column or any name which you want to your database structure (based on your config file). Some users want to authenticate a user with themselves way.