PATH:
home
/
lab2454c
/
healthvalidate.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Validation
<?php namespace Illuminate\Validation; /** * Provides default implementation of ValidatesWhenResolved contract. */ trait ValidatesWhenResolvedTrait { /** * Validate the class instance. * * @return void */ public function validateResolved() { $this->prepareForValidation(); if (! $this->passesAuthorization()) { $this->failedAuthorization(); } $instance = $this->getValidatorInstance(); if ($instance->fails()) { $this->failedValidation($instance); } $this->passedValidation(); } /** * Prepare the data for validation. * * @return void */ protected function prepareForValidation() { // } /** * Get the validator instance for the request. * * @return \Illuminate\Validation\Validator */ protected function getValidatorInstance() { return $this->validator(); } /** * Handle a passed validation attempt. * * @return void */ protected function passedValidation() { // } /** * Handle a failed validation attempt. * * @param \Illuminate\Validation\Validator $validator * @return void * * @throws \Illuminate\Validation\ValidationException */ protected function failedValidation(Validator $validator) { throw new ValidationException($validator); } /** * Determine if the request passes the authorization check. * * @return bool */ protected function passesAuthorization() { if (method_exists($this, 'authorize')) { return $this->authorize(); } return true; } /** * Handle a failed authorization attempt. * * @return void * * @throws \Illuminate\Validation\UnauthorizedException */ protected function failedAuthorization() { throw new UnauthorizedException; } }
[-] UnauthorizedException.php
[edit]
[-] composer.json
[edit]
[+]
..
[-] ValidationException.php
[edit]
[-] ValidatesWhenResolvedTrait.php
[edit]
[+]
Rules
[-] Rule.php
[edit]
[-] Validator.php
[edit]
[-] DatabasePresenceVerifier.php
[edit]
[-] ClosureValidationRule.php
[edit]
[-] LICENSE.md
[edit]
[-] PresenceVerifierInterface.php
[edit]
[-] ValidationServiceProvider.php
[edit]
[-] ValidationData.php
[edit]
[-] ConditionalRules.php
[edit]
[-] ValidationRuleParser.php
[edit]
[-] Factory.php
[edit]
[-] NotPwnedVerifier.php
[edit]
[-] DatabasePresenceVerifierInterface.php
[edit]
[+]
Concerns