1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace App\Http\Requests\Site;
- use App\Http\Requests\Request;
- use Illuminate\Validation\Rule;
- class AllotStaffRequest 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()
- {
- return [
- 'siteIds' => 'required|array',
- 'editorIds' => 'required|array',
- 'serverIds' => 'required|array',
- 'managerIds' => 'required|array'
- ];
- }
- public function attributes()
- {
- return [
- 'siteIds' => '项目',
- 'editorIds' => '采编人员',
- 'serverIds' => '服务人员',
- 'managerIds' => '项目经理',
- ];
- }
- }
|