Bismillah, Hello Everyone.
Today, Iโll continue my mini-project to make Laundry-Apps. But, first Iโll explain how to build your own RESTFUL-API with Lumen.
Before, we start to learn. Maybe, you can read my previous introduction about Lumen in here.
Design Database
users: Table which stores information about the user's application. If you want to explore more about this table, maybe you can add some attributes such as first_name, last_name, mobile phone, and etc.
users_type: Role access user for access to this system. An easy example is administrators can access create, read, update, and delete products in the system, but users/employees only can access view products.
transaction: To store header each transaction that happens.
transaction_approval: Every transaction will be validated, by admin. Users only obtain information about their wash, with two options unfinished or finish.
This design maybe not perfectly splendid, you still afford to customize as you want.
Implement the design to your database. Enjoy it!!. ๐๐๐