for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace JobApis\JobsToMail\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class LoginUser extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
return true;
}
* Get custom messages for validator errors.
* @return array
public function messages()
return [
'exists' =>'This email address is not registered.
Please try another email or create a new account.'
];
* Get the validation rules that apply to the request.
public function rules()
'email' => 'required|email|exists:users,email,deleted_at,NULL',