user()->can('edit', $this->bank_integration); } public function rules() { /* Ensure we have a client name, and that all emails are unique*/ $rules = [ 'auto_sync' => 'sometimes|bool' ]; return $rules; } public function messages() { return [ ]; } public function prepareForValidation() { $input = $this->all(); $this->replace($input); } }