reziamini/laravel-easypanel

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

Closed this issue · 14 comments

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

Could you please attach the error message as a photo?

No erros, the admin route simpli does not exists

You mean you get 404 error?

Yes! 404 on /admin route

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.

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

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

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

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...

Have you updated Laravel version?
Tell me your Laravel version

Laravel 8 default fresh installation, latest version!

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

J87NL commented

@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

@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.