Skip to content

Register a user in Laravel manually

Written by

sysadmin
php artisan tinker

Adding a new user to user table with the model User().

$user = new App\User();
$user->password = Hash::make('password');
$user->email = 'email@example.com';
$user->name = 'Name';
$user->save();

Next article

Laravel specific table migration in single artisan command