Answers for "defrent User::all(); and new User(); +laravel -user"

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

Browse Popular Code Answers by Language