You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Request;
|
|
|
|
use Hyperf\Validation\Request\FormRequest;
|
|
|
|
class StoreApplyEntryRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*/
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'name' => 'required|nonempty',
|
|
'market_id' => 'required|nonempty',
|
|
'md_type' => 'required|nonempty',
|
|
'address' => 'required|nonempty',
|
|
'coordinates' => 'required|nonempty',
|
|
'details' => 'required|nonempty',
|
|
'link_name' => 'required|nonempty',
|
|
'link_tel' => 'required|nonempty',
|
|
'tel' => 'required|nonempty',
|
|
'logo' => 'required|nonempty',
|
|
'fm_img' => 'required|nonempty',
|
|
'zm_img' => 'required|nonempty',
|
|
'yyzz' => 'required|nonempty',
|
|
'user_id' => 'required|nonempty',
|
|
'mm_user_id' => 'required|nonempty',
|
|
];
|
|
}
|
|
}
|