Register API for admin

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!
veeran ambalam
Posts: 19
Joined: 06 Mar 2021, 14:51

Register API for admin

Post by veeran ambalam » 28 Jul 2021, 17:37

Hi Guys, is there is register API for admin, or Should I make something on my own, Please guide me. What I found so far is superuser column on the customer table helps to differentiate between admin and user, But I don't know how to mark superuser as "1" through add customer API. NOTE: I don't have multiple shops so my default shop id is "1."

Thanks in advance :)

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

Re: Register API for admin

Post by aimeos » 29 Jul 2021, 05:18

There's a command for creating new super/admin/editor users:

Code: Select all

php artisan aimeos:account --super <email>
php artisan aimeos:account --admin <email>
php artisan aimeos:account --editor <email>
The code is available here for reference:
https://github.com/aimeos/aimeos-larave ... ommand.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply