title: ERROR: Object of class stdClass could not be converted to string
body: <p>When I run the code below</p>
  
  <pre><code>$id = Input::get('branch_id');
  $retailer_code = DB::table('branches')-&gt;select('retailer_code')-&gt;where('id', $id)-&gt;first();
  $user = new User;
  $user-&gt;user_firstname = Input::get('user_firstname');
  $user-&gt;user_lastname = Input::get('user_lastname');
  $user-&gt;user_email = Input::get('user_email');
  $user-&gt;username = Input::get('username');
  $user-&gt;password = Hash::make(Input::get('password'));
  $user-&gt;position_id = Input::get('position_id');
  $user-&gt;retailer_code = $retailer_code;
  $user-&gt;branch = Input::get('branch_code');
  $user-&gt;status = "1";
  $user-&gt;save();
  
  return Redirect::to('admin/users')-&gt;with('message', 'New User Added!');
  </code></pre>
  
  <p>I get this error "Object of class stdClass could not be converted to string"</p>