user()->isAdmin(); } public function rules() { /* Ensure we have a client name, and that all emails are unique*/ $rules = []; return $rules; } public function messages() { return [ ]; } public function prepareForValidation() { $input = $this->all(); if (isset($input['client_id'])) { unset($input['client_id']); } if (isset($input['company_gateway_id'])) { unset($input['company_gateway_id']); } $input = $this->decodePrimaryKeys($input); $this->replace($input); } }