eckmar-community / eckmar

Open-source marketplace on Laravel (PHP). Also known as the Eckmar's Marketplace Script.
103 stars 60 forks source link

Admin #102

Open Lakewith opened 8 months ago

Lakewith commented 8 months ago

Sup, i saw already that some1 asked how to create a admin user / super user but i would love if some1 could just explain step by step how it works, ive tried like everything i know but its still not working.

Regards.

knulii commented 8 months ago

Yo dog. Here is how I have done it:

Create a new user via the website Then you need to mysql into the database and get the new user's id

mysql USE marketplace; SHOW TABLES; to list all the tables in the db SELECT * FROM users; copy the id of the new user you created. ie. 'dc000e70-8708-11ee-8306-fbe541b683a1' then you need to insert the id into admins INSERT INTO admins (id) VALUES ('dc000e70-8708-11ee-8306-fbe541b683a1'); FLUSH PRIVILEGES; exit

New user should now be admin. Something like that

dclipca commented 8 months ago

Also if you're new to SQL you can use DBeaver or pgadmin to visualize the db tables. You just need to add a new row to the admins table. The row should have the id of the admin.

Lakewith commented 8 months ago

Thank you very much! Helped me a lot.

Lakewith commented 8 months ago

and any idea maybe in which file i could change the color of the top bar?

dclipca commented 8 months ago

and any idea maybe in which file i could change the color of the top bar?

Right click -> Inspect -> find the color of the top bar -> search for it in the code -> change until you get the correct reference

dclipca commented 8 months ago

I would have told but I haven't used eckmar for a long time