update or insert laravel laravel code example
Example: create new record via model in laravel
$userData = array('username' => 'Me', 'email' => '[email protected]');
User::create($userData);
$userData = array('username' => 'Me', 'email' => '[email protected]');
User::create($userData);