title: Laravel get the sent data to the request
body: <p>I am implementing an API using Laravel 5.4 . I want to send the title, description, time and user_id as a JSON and after that to get the JSON response with the input data.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    $title = $request-&gt;input('title');
      $description = $request-&gt;input('description');
      $time = $request-&gt;input('time');
      $user_id = $request-&gt;input('user_id');
  
      $meeting = [
          'title' =&gt; $title,
          'description' =&gt; $description,
          'time' =&gt; $time,
          'user_id' =&gt; $user_id,
          'view_meeting' =&gt; [
              'href' =&gt; 'api/v1/meeting/1',
              'method' =&gt; 'GET1'
          ]
      ];
  
      $response = [
        'msg' =&gt; 'Meeting created',
        'meeting' =&gt; $meeting
      ];
  
      return response()-&gt;json($response, 201);
  </code></pre>
  
  <p>After running the server, I make a post request using POSTMAN (body->raw:)</p>
  
  <pre><code>{
  "time": "201601301330CET",
  "title": "Test meeting 2",
  "description": "Test",
  "user_id": 2
  }
  </code></pre>
  
  <p>But it return this:</p>
  
  <pre><code>{
  "msg": "Meeting created",
  "meeting": {
    "title": null,
    "description": null,
    "time": null,
    "user_id": null,
    "view_meeting": {
      "href": "api/v1/meeting/1",
      "method": "GET1"
    }
  }
  }
  </code></pre>
  
  <p>Why the title, description, time and user_id fields are null?</p>