Tag Archives: Laravel

Use PostMan to post JSON to REST backend

  1. Set web method to POST
  2. Add to the Headers:
    1. a key named: Accept with value application/json
    2. a key named: Content-Type with value application/json
  3. Optionally, if authentication is required:
    1. a key named: Authorization with value: bearer: token
  4. Add the JSON data to the raw area of Body of Postman
  5. Click send.

Token example::

Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3RcL21pYWNcL2FwaVwvYXV0aFwvbG9naW4iLCJpYXQiOjE1NTc2NjgwOTUsImV4cCI6MTU1NzY3MTY5NSwibmJmIjoxNTU3NjY4MDk1LCJqdGkiOiJDa0VRVUZDa2xTZm9OcTZHIiwic3ViIjoxLCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIiwibmFtZSI6Ik1pQWMifQ.AWCjjEQh-Tmc4I9z3R0AA1QLUm5IuZAYSlRjeL5IrLo

Headers:

postman_laravel

Body:

postman_laravel_2

 

Laravel links 🏅

Cheatsheets:

  1. https://summerblue.github.io/laravel5-cheatsheet/

Laravel – Basics

Laravel – Eloquent

Laravel – architecture

Laravel – REST

Laravel – GUI:

Laravel – Authentication and authorization:

Laravel – CRUD

Laravel – Migrations

Laravel – Mass assignment

Laravel – How to create PDFs

Laravel – Digitally sign PDFs:

Laravel – Repository pattern discussions

Laravel – logging

Laravel – Troubleshooting

Laravel – Queues

Laravel – deployment