title: syntax error, unexpected 'firstOrCreate' (T_STRING), expecting variable (T_VARIABLE) or '$
body: <p>Im getting this error when i try to do this:</p>
  
  <pre><code>  $additional_features = $request-&gt;input('additional_features');
          foreach($additional_features as $additional_feature){
            $data = [
               'name' =&gt; $additional_feature
             ];
  
             $additional = new Feature::firstOrCreate($data);
          }
  </code></pre>
  
  <p>$additional_features is an array and i try to add that, so how many items i have in array i will have that many records.Any suggestion?</p>