class User extends \Illuminate\Database\Eloquent\Model { protected $table = 'users'; }
$users = User::all();
$user = new User; $user->name = 'John Doe'; $user->email = 'johndoe@example.com'; $user->save();This will create a new user with the given name and email and save it to the database. The above examples are using the Laravel Eloquent ORM package library.