Admin panel

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
мужыковмужыков
Posts: 10
Joined: 08 Sep 2023, 08:52

Admin panel

Post by мужыковмужыков » 04 Oct 2023, 11:53

When I installed aimeos package in my Laravel project (with Jetstream) I tried to go to the admin page (path: /admin) I was redirected to /dashboard of Laravel app. How can I have access to the admin page?

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Admin panel

Post by aimeos » 05 Oct 2023, 09:37

You user must have super, admin or editor privileges and you can create such users (or update existing users) by executing:

Code: Select all

php artisan aimeos:account --super <email>
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
мужыковмужыков
Posts: 10
Joined: 08 Sep 2023, 08:52

Re: Admin panel

Post by мужыковмужыков » 06 Oct 2023, 08:01

aimeos wrote: 05 Oct 2023, 09:37 You user must have super, admin or editor privileges and you can create such users (or update existing users) by executing:

Code: Select all

php artisan aimeos:account --super <email>
I created a super account but I still redirect to Laravel dashboard. Do I need to add additional configuration to the route file or something else?

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Admin panel

Post by aimeos » 06 Oct 2023, 08:08

If you don't use the Aimeos distribution, standard Laravel setups always redirect to the dashboard after login by default instead of the last URL. Check the files in the ./app/Http/ directory.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
мужыковмужыков
Posts: 10
Joined: 08 Sep 2023, 08:52

Re: Admin panel

Post by мужыковмужыков » 06 Oct 2023, 18:09

aimeos wrote: 06 Oct 2023, 08:08 If you don't use the Aimeos distribution, standard Laravel setups always redirect to the dashboard after login by default instead of the last URL. Check the files in the ./app/Http/ directory.
what should be there? Do I need to add something?

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Admin panel

Post by aimeos » 07 Oct 2023, 07:48

The Aimeos distribution uses Laravel Breeze instead of Jetstream so it may require changing different files. In the distribution, these lines are relevant:
- https://github.com/aimeos/aimeos/blob/m ... er.php#L20
- https://github.com/aimeos/aimeos/blob/m ... er.php#L33
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply