laravel first or insert 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);