Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
getting_started_with_laravel [03.12.2020 15:39] – [Form validation] Pascal Suter | getting_started_with_laravel [03.12.2020 15:44] – [Form validation] Pascal Suter | ||
---|---|---|---|
Line 153: | Line 153: | ||
<code php> | <code php> | ||
public function store(Request $request){ | public function store(Request $request){ | ||
- | $validateData | + | $validData |
' | ' | ||
' | ' | ||
Line 162: | Line 162: | ||
</ | </ | ||
there are many [[https:// | there are many [[https:// | ||
+ | |||
+ | also note, that the '' | ||
now here are a few cool things about the validator: | now here are a few cool things about the validator: | ||
Line 168: | Line 170: | ||
* even better, there is a '' | * even better, there is a '' | ||
- | here's an example part of a blade with a form that will show some info if the validation fails: | + | here's an example part of a (bootstrap based) |
<code html> | <code html> |