username === 'service_user257' && Hash::check('S3rv1ce@123', $this->password); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'province' => 'exists:provinces,id', 'status' => 'in:0,1', 'type' => 'in:1,2,3', ]; } }