Laravel 5 read Json file give error `Response.php line 403`
<p>I want to read <code>json</code> file from database directory, but give <code>The Response content must be a string or object implementing __toString(), "boolean" given.</code> error. Bellow is my code :  </p>

<pre><code>  $json = file_get_contents('database/query_templates/course.json');
  $data = json_decode($json, TRUE);              

  echo '&lt;pre/&gt;'; print_r($data); exit;
</code></pre>

<p><code>course.json</code> file content :</p>

<pre><code>{
  "post_filter" : {
     "operator" : [
        {
           "operator" : [
              {
                "range" : {
                    "created_at" : {
                        "gte" : "log_start_date",
                        "lte" : "log_end_date",
                        "format" : "yyyy-MM-dd"
                    }
                }
            },
            {
                "terms" : {
                    "search_param_user_action.id" : "user_select_array"
                }
            }
        ]
    },
    {
        "operator" : [
            {
                "operator" : [
                    "conduct_days_multi"
                ]
            },
            {
                "operator" : [
                    "dropdowns"
                ]
            }
        ]
    },
    {
        "query" : {
            "multi_match" : {
                "query" : "x",
                "fields" : [
                    "resource_search_columns"
                ],

                "operator" : "operator"
            }
         }
      }
    ]
  }
}
</code></pre>

<p>for any help thanks.</p>