ProjectEdtiorRequest.php 900 Bytes
<?php


namespace App\Http\Container\AppSection\Requests;


use Hikoon\LaravelApi\Support\ApiRequest;

class ProjectEdtiorRequest extends ApiRequest
{
    public function rules(): array
    {
        return [
            'id' => 'required|int',
            'cover' => 'string',
            'name' => 'string',
            'master_id' => 'int',
            'head_cover' => 'string',
            'intro' => 'string',



        ];
    }

    public function messages(): array
    {
        return [
            'id.required' => 'id为必填项。',
            'id.int' => 'id数字类型',
            'cover.string' => 'cover为字符串类型',
            'name.string' => 'name为字符串类型',
            'master_id.int' => 'master_id数字类型',
            'head_cover.string' => 'head_cover为字符串类型',
            'intro.string' => 'intro为字符串类型',
        ];
    }
}