if ($request->isMethod('post')) { return ['user' => $user]; }
if ($request->isMethod('post')) { // statement }