how to validate object laravel code example
Example 1: email validation in laravel
'email' => 'required|email|unique:users,email',
//@sujay
Example 2: laravel validation
Validator::extend('foo', 'FooValidator@validate');
'email' => 'required|email|unique:users,email',
//@sujay
Validator::extend('foo', 'FooValidator@validate');