芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/portpulselogistics.com/Modules/Cargo/Http/Requests/StaffRequest.php
method() == 'PUT') { $user_id = Staff::where('id',$this->route('staff'))->pluck('user_id')->first(); $email_validation .= (',' . $user_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, 'responsible_mobile' => 'required|min:5', 'country_code' => 'required', // 'role_id' => 'required', 'branch_id' => 'required' ]; } /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } }