simple Task for creating customers and actions on customers and also authentication with laravel passport we can do CRUD operations on customers , add and update actions on customers The whole project test with postman
- Clone the repository with git clone
- Copy .env.example file to .env and edit database credentials there
- Run composer install
- Run php artisan key:generate
- Run php artisan migrate
- Run php artisan serve
- Authentication with laravel passport
- CRUD operation on customers
- Adding or updating actions of customer
Register API: Verb: POST, URL: http://127.0.0.1:8000/api/register
Login API: Verb: POST, URL: http://127.0.0.1:8000/api/login
Create customer API: Verb: POST, URL: http://127.0.0.1:8000/api/customers
All customers API: Verb: GET, URL: http://127.0.0.1:8000/api/customers
Show Single Customer API: Verb: GET, URL: http://127.0.0.1:8000/api/customers/4
Update Customer API: Verb: PUT, URL: http://127.0.0.1:8000/api/customers/4
Delete Customer API: Verb: DELETE, URL: hhttp://127.0.0.1:8000/api/customers/5
Add action on customer API: Verb: POST, URL: http://127.0.0.1:8000/api/actions
Update action on customer API: Verb: PUT, URL: http://127.0.0.1:8000/api/actions/10
Thank you.