Files
Credit-Zombies/app/Http/Requests/BaseRequest.php
2026-06-24 18:29:01 +06:00

38 lines
811 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@_*.]*$).*/';
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 [
//
];
}
}