Answers for "laravel user create then user id"

PHP
1

laravel 6 get user id

$id = \Auth::id();
Posted by: Guest on December-22-2020
0

laravel add user

php artisan tinker
DB::table('users')->insert(['name'=>'MyUsername','email'=>'[email protected]','password'=>Hash::make('123456')])
Posted by: Guest on December-20-2020

Browse Popular Code Answers by Language