Customer Acc Registration and Admin Login

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
sedersmith
Posts: 1
Joined: 06 Dec 2019, 10:58

Customer Acc Registration and Admin Login

Post by sedersmith » 06 Dec 2019, 11:04

Hi team,
Kindly give me step by step guide that I which customer can register and login to their account and customer can only see their details and order details.

and the second thing is I want to redirect the customer to their dashboard means if admin is login it should go to the admin dashboard and if a simple customer in login then the customer should go to their panel.

Regards,
Seder Smith
Last edited by sedersmith on 10 Dec 2019, 18:55, edited 1 time in total.

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

Re: Customer Acc Registration and Admin Login

Post by aimeos » 07 Dec 2019, 10:40

sedersmith wrote:
06 Dec 2019, 11:04
Kindly give me step by step guide that I which customer can register and login to their account and customer can only see their details and order details.
This is standard Laravel stuff:
https://laravel.com/docs/6.x/authentication

A short summary how to set up authentication (applies to admins and users) is here:
https://github.com/aimeos/aimeos-laravel#admin
sedersmith wrote:
06 Dec 2019, 11:04
and the second thing is I want to redirect the customer to their dashboard means if admin is login it should go to the admin dashboard and if a simple customer in login then the customer should go to their panel.
That's more difficult because by default, both use different URLs:
- admin: .../admin
- user: .../myaccount

You would need to create a new Laravel controller that does authentication manually and redirect to the appropriate URLs. You can use the admin controller as reference:
https://github.com/aimeos/aimeos-larave ... roller.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply