芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/portpulselogistics.com/Modules/Users/Http/Requests/UserRequest.php
method() == 'PUT') { $email_validation .= (',' . $this->route('id') . ',id'); $password_validation = 'nullable|' . $password_validation; } else { $password_validation = 'required|' . $password_validation; } return [ 'name' => 'required|string|min:3|max:50', 'email' => $email_validation, 'password' => $password_validation, 'role' => 'nullable|in:' . implode(',', array_keys(config('cms.user_roles'))), 'avatar' => 'nullable|image|max:10000' ]; } /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } }