39 lines
960 B
PHP
39 lines
960 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class BaseRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
protected string $script_validation_rule = '/^[^<>]+$/';
|
|
protected string $RULE_EXPIRY_REGEX = "/^(0[1-9]|1[0-2]|[1-9])\/(1[4-9]|[0-9][0-9]|20[1-9][1-9])$/";
|
|
|
|
protected string $password_validation_rule = '/^(?=[-a-zA-Z0-9@_*.]*$).*/'; // smart credit
|
|
protected string $identity_iq_password_validation_rule = '/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/'; // identity iq
|
|
|
|
protected string $street_validation_rule = '/^(?=[-0-9A-Za-z.#\s]*$).*/';
|
|
|
|
public function authorize()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
}
|