Shirl Proctor is an experienced professional with a background in program management, test administration, and project management. Shirl began their career in 2015 as Project Manager for Data Recognition Corporation. In 2021, they joined The Oryza Group as Test Administrator. Most recently, in 2022, they became Program Manager for LaunchTech.
<?php
namespace App\Http\Controllers;
use App\Models\User;
use App\Models\Userinfo;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
class UserController extends Controller
{
//
public function show(){
$user = User::find(Auth::user()->id);
$userinfo = Userinfo::find(Auth::user()->id);
return view('user.show',compact('user','userinfo'));
}
public function update(Request $request){
$user = User::find(Auth::user()->id);
$user->name = $request->name;
$user->email = $request->email;
$user->save();
$userinfo = Userinfo::find(Auth::user()->id);
$userinfo->sex = $request->sex;
$userinfo->address = $request->address;
$userinfo->phone = $request->phone;
$userinfo->save();
return back();
}
public function updatepwd(Request $request){
$user = User::find(Auth::user()->id);
if(Hash::check($request->oldpassword,$user->password)){
$user->password = Hash::make($request->password);
$user->save();
return back();
}
else{
return back()->withErrors('原密码错误');
}
}
}
Sign up to view 2 direct reports
Get started
This person is not in any teams