ApplyAddParkingRequest.php 560 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. *
  4. *
  5. * @category xxx
  6. * @package PSR
  7. * @subpackage Documentation\API
  8. * @author xxx <xxx@xxx.com>
  9. * @license GPL https://xxx.com
  10. * @link https://xxx.com
  11. * @ctime: 2020/5/13 15:52
  12. */
  13. namespace App\Http\Requests;
  14. use App\Validators\Rules;
  15. class ApplyAddParkingRequest extends FormRequest
  16. {
  17. public function rules(){
  18. return [
  19. 'area_id' => Rules::area_id,
  20. 'location_name' => 'required',
  21. 'longitude' => Rules::lng,
  22. 'latitude' => Rules::lat,
  23. ];
  24. }
  25. }