diff --git a/readme.md b/readme.md index 3cdbb80..fc39c8d 100644 --- a/readme.md +++ b/readme.md @@ -139,7 +139,7 @@ class SurveyEntriesController extends Controller { public function store(Survey $survey, Request $request) { - $answers = $this->validate($request, $survey->rules); + $answers = $request->validate($request, $survey->rules); (new Entry)->for($survey)->fromArray($answers)->push(); }