40 lines
		
	
	
		
			758 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			758 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| <?php namespace Illuminate\Contracts\Validation;
 | |
| 
 | |
| use Illuminate\Contracts\Support\MessageProvider;
 | |
| 
 | |
| interface Validator extends MessageProvider {
 | |
| 
 | |
| 	/**
 | |
| 	 * Determine if the data fails the validation rules.
 | |
| 	 *
 | |
| 	 * @return bool
 | |
| 	 */
 | |
| 	public function fails();
 | |
| 
 | |
| 	/**
 | |
| 	 * Get the failed validation rules.
 | |
| 	 *
 | |
| 	 * @return array
 | |
| 	 */
 | |
| 	public function failed();
 | |
| 
 | |
| 	/**
 | |
| 	 * Add conditions to a given field based on a Closure.
 | |
| 	 *
 | |
| 	 * @param  string  $attribute
 | |
| 	 * @param  string|array  $rules
 | |
| 	 * @param  callable  $callback
 | |
| 	 * @return void
 | |
| 	 */
 | |
| 	public function sometimes($attribute, $rules, callable $callback);
 | |
| 
 | |
| 	/**
 | |
| 	 * After an after validation callback.
 | |
| 	 *
 | |
| 	 * @param  callable|string  $callback
 | |
| 	 * @return $this
 | |
| 	 */
 | |
| 	public function after($callback);
 | |
| 
 | |
| }
 |