32 lines
611 B
PHP
32 lines
611 B
PHP
<?php
|
|
|
|
namespace App\Http\Requestes;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class RiceShrimpWeeklyPriceUpdateRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'year' => ['filled', 'int'],
|
|
'week' => ['filled', 'int'],
|
|
'price' => ['filled', 'int'],
|
|
];
|
|
}
|
|
|
|
public function attributes()
|
|
{
|
|
return [
|
|
'year' => '年份',
|
|
'week' => '周',
|
|
'price' => '价格',
|
|
];
|
|
}
|
|
}
|