✏️ Edit: StateRequest.php
Path:
/home/thiqat5/electronics.thiqatech.com/platform/plugins/location/src/Http/Requests/StateRequest.php
Size: 626 B · Modified: 2022-04-22 10:13:56 · Perm: 0644 · Writable
← Back to directory
👁 View
⬇ Download
<?php namespace Botble\Location\Http\Requests; use Botble\Base\Enums\BaseStatusEnum; use Botble\Support\Http\Requests\Request; use Illuminate\Validation\Rule; class StateRequest extends Request { /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'name' => 'required', 'country_id' => 'required', 'order' => 'required|integer|min:0|max:127', 'abbreviation' => 'max:2', 'status' => Rule::in(BaseStatusEnum::values()), ]; } }
💾 Save
Cancel
Save as UTF-8, newlines normalized to LF