$user = User::find($request->userid);

PHP
$userId = Auth::id();
Source

Also in PHP: