芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/portpulselogistics.com/Modules/Cargo/Http/Requests/ClientRequest.php
method() == 'PUT') { $user_id = Client::where('id',$this->route('client'))->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', 'responsible_name' => 'required|string|min:3|max:50', 'national_id' => 'required', 'branch_id' => 'required', 'address' => 'required', 'follow_up_name' => 'nullable', 'follow_up_mobile' => 'nullable', 'follow_up_country_code' => 'nullable', 'how_know_us' => 'nullable', 'pickup_cost' => 'nullable', 'supply_cost' => 'nullable', 'def_shipping_cost' => 'nullable', 'def_tax' => 'nullable', 'def_insurance' => 'nullable', 'def_return_cost' => 'nullable', 'def_shipping_cost_gram' => 'nullable', 'def_tax_gram' => 'nullable', 'def_insurance_gram' => 'nullable', 'def_return_cost_gram' => 'nullable', 'def_mile_cost' => 'nullable', 'def_return_mile_cost' => 'nullable', 'def_mile_cost_gram' => 'nullable', 'def_return_mile_cost_gram' => 'nullable', ]; } /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } }