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:45] – [passing variables from content blades to layouts] Pascal Suter | getting_started_with_laravel [03.12.2020 16:10] – [Form validation] Pascal Suter | ||
---|---|---|---|
Line 169: | Line 169: | ||
* in addition to bringing the user back to the form, laravel will provide an '' | * in addition to bringing the user back to the form, laravel will provide an '' | ||
* even better, there is a '' | * even better, there is a '' | ||
+ | * you also get a '' | ||
here's an example part of a (bootstrap based) blade with a form that will show some info if the validation fails: | here's an example part of a (bootstrap based) blade with a form that will show some info if the validation fails: | ||
Line 183: | Line 183: | ||
<div class=" | <div class=" | ||
<label for=" | <label for=" | ||
- | <input type=" | + | <input type=" |
<div class=" | <div class=" | ||
</ | </ | ||
Line 224: | Line 224: | ||
@extends(' | @extends(' | ||
</ | </ | ||
- | and in the layout you would then simply use '' | + | and in the layout you would then simply use < |
=== 2.) create a mini-section === | === 2.) create a mini-section === |