Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. $suburbInsert = array();
  2. $suburbInsert[] = array(
  3.  
  4. 'name' => $postalCode . ' ' . $suburbName,
  5. 'suburb_name' => $suburbName,
  6. 'pcode' => $postalCode
  7.  
  8. );
  9.  
  10. $suburbID = DB::table('suburbs')->insertGetId( $suburbInsert );
  11.  
  12. {"error":{"type":"ErrorException","message":"preg_replace(): Parameter mismatch, pattern is a string while replacement is an array","file":"/var/www/laravel/vendor/laravel/framework/src/Illuminate/Support/helpers.php","line":990}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement