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.
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.
@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:
- composer global require laravel/installer
- laravel new [project-folder-name] --jet
- cd [project-folder-name]
- composer require rezaamini-ir/laravel-easypanel
- php artisan panel:install
- Create database + user and update credentials in
.env
- php artisan migrate
- npm install && npm run dev
- Register a new user using /register
- Manually add an is_superuser-column to your users-table and set value to '1' for your user.
- Go to /admin and see if it works.
- Bonus: update
config/easy_panel.php
and settodo
totrue
@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.