Answers for "laravel auth user get username"

PHP
5

get logged user id laravel

$id = Auth::user()->id;print_r($id);
Posted by: Guest on March-25-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