| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 | <?phpnamespace App\Http\Requests\Article;use App\Http\Requests\Request;class ArticleSyncRequest extends Request{    /**     * Determine if the user is authorized to make this request.     *     * @return bool     */    public function authorize()    {        return true;    }    /**     * Get the validation rules that apply to the request.     *     * @return array     */    public function rules()    {        if (!$this->ajax()) {            return [];        }        return [            'article_ids' => 'array',            'remote_content_id' => 'required',            'template_id' => 'required',            'release_at' => 'required',            'release_interval' => 'required'        ];    }    public function attributes()    {        return [            'article_ids' => '软文',            'remote_content_id' => '同步站点',            'template_id' => '模板',            'release_at' => '发布日期',            'release_interval' => '间隔'        ];    }}
 |