title: How to Save Laravel rest Api logs into db
body: <p>I want to save all api logs in db.
  For example whenever a api gets hit, its request and response get saved in a table.</p>
  
  <p>Is there settings in Lavavel to enable logs of Rest apis into db.</p>
  
  <p>For example in codeigniter:
  Request param logs as :
  a:12:{s:13:"session_token";s:20:"OiCtWkqBLm6ScaSHOmQR";s:12:"Content-Type";s:16:"application/json";s:13:"cache-control";s:8:"no-cache";s:13:"Postman-Token";s:36:"0d13fe2e-9986-4ef2-ba46-8207dd28cd44";s:10:"User-Agent";s:20:"PostmanRuntime/7.1.1";s:6:"Accept";s:3:"<em>/</em>";s:4:"Host";s:9:"localhost";s:6:"cookie";s:81:"PHPSESSID=ho1oa4gjll59u4vq9usct3lev7; ci_session=ruttt4i5144hob6feq3mrv080nh2n74o";s:15:"accept-encoding";s:13:"gzip, deflate";s:14:"content-length";s:2:"19";s:10:"Connection";s:10:"keep-alive";s:7:"user_id";i:13;} </p>