Answers for "create a user and get that user in laravel"

PHP
3

current user laravel

$user = auth()->user();  print($user->id);print($user->name);print($user->email);
Posted by: Guest on May-26-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

Code answers related to "create a user and get that user in laravel"

Browse Popular Code Answers by Language