laravel model create new record inside model 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);