Created
December 27, 2019 20:14
-
-
Save programarivm/89f520d7a557e8f0a22a03b7818839ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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