| 12345678910111213141516171819202122232425262728293031323334353637383940414243 | <?phpnamespace App\Http\Requests\Link;use App\Http\Requests\Request;class TaskScoreRequest 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 [            'avatar' => 'numeric',            'custom_domain' => 'numeric',            'custom_link' => 'numeric',            'intro' => 'numeric',            'anchor' => 'numeric',            'official_website' => 'numeric',            'product_img' => 'numeric',            'note' => 'numeric',            'show_url' => 'numeric',            'total' => 'numeric',        ];    }}
 |