inital commit
This commit is contained in:
23
app/Http/Requests/CreditReportProviderRequest.php
Normal file
23
app/Http/Requests/CreditReportProviderRequest.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
|
||||
class CreditReportProviderRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
|
||||
'link'=> 'required|regex:'.config('constant.REPORT_PROVIDER_LINK_VALIDATION'),
|
||||
|
||||
'source_type' => 'required|unique:creditreport_providers,company_type'
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user