title: How to return the current inserted row data in Laravel?
body: <p>I have inserted a row in db using laravel eloquent method. See the code below,</p>
  
  <pre><code>public function store() {
      $language = new languages;
      $language -&gt; languages = Input::get('languages');
      $language -&gt; created_by =  Auth::user()-&gt;id;
      $language -&gt; updated_by = Auth::user()-&gt;id;
      if( $language -&gt; save() ) {
          $returnData = languages::where("id","=",$language -&gt; id) -&gt; get();
          $data = array ("message" =&gt; 'Language added successfully',"data" =&gt; $returnData );
          $response = Response::json($data,200);
          return $response; 
      } 
  }
  </code></pre>
  
  <p>I want the last inserted row from the table, but my response contains empty data. Please guide the right method of getting the data?</p>