RuleRequest.php 337 B

1234567891011121314151617
  1. <?php
  2. namespace App\Http\Requests\Admin;
  3. use Illuminate\Foundation\Http\FormRequest;
  4. class RuleRequest extends FormRequest
  5. {
  6. public function rules()
  7. {
  8. return [
  9. 'type' => 'required|numeric|between:1,4',
  10. 'name' => 'required|string',
  11. 'pattern' => 'required|string',
  12. ];
  13. }
  14. }