user()->isAdmin(); } public function rules() { $rules = [ 'client_id' => 'required', 'company_gateway_id' => 'required', 'gateway_type_id' => 'required|integer', 'meta' => 'required', ]; return $this->globalRules($rules); } protected function prepareForValidation() { $input = $this->all(); $input = $this->decodePrimaryKeys($input); $this->replace($input); } public function messages() { return [ ]; } }