-
Notifications
You must be signed in to change notification settings - Fork 1
Insert a Row
Gilberto Junior edited this page Dec 4, 2019
·
2 revisions
This method creates a new entry.
public function create(array $data): Model;
$instance = $repository->create([
'name' => 'Joe Doe',
'email' => '[email protected]',
]);
echo 'User #' . $user->id . ' created';
by c0dehappy