Skip to content

Instantly share code, notes, and snippets.

@joshbrw
Created December 19, 2016 10:13
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 joshbrw/75c3f99fc0a82a3b1a29f9bab0ac1647 to your computer and use it in GitHub Desktop.
Save joshbrw/75c3f99fc0a82a3b1a29f9bab0ac1647 to your computer and use it in GitHub Desktop.
use Illuminate\Foundation\Http\FormRequest;
class $CLASSNAME$ extends FormRequest
{
/**
* Authorise the Request
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the Validation Rules for this Request.
* @return array
*/
public function rules()
{
return [$RULES$];
}
/**
* Set custom messages for validator errors.
*
* @return array
*/
public function messages()
{
return [$MESSAGES$];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment