Skip to content

Instantly share code, notes, and snippets.

@programarivm
Created December 27, 2019 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save programarivm/89f520d7a557e8f0a22a03b7818839ed to your computer and use it in GitHub Desktop.
Save programarivm/89f520d7a557e8f0a22a03b7818839ed to your computer and use it in GitHub Desktop.
<?php
namespace App\Http\Requests;
class StoreRestaurant extends AbstractAuthorizedFormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'required|max:64',
'description' => 'required|max:256',
'address' => 'required|max:256',
'lat' => 'numeric|between:-90,90',
'lon' => 'numeric|between:-180,180',
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment