Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php artisan insert user in database with tinker

$user = new AppUser();
$user->password = Hash::make('123456');
$user->email = 'email@domain.com';
$user->name = 'username';
$user->save();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #artisan #insert #user #database #tinker
ADD COMMENT
Topic
Name
9+3 =