このページの2つのバージョン間の差分を表示します。
プログラム言語:php:laravel:フォーム:old関数を使った書き方 [2020/01/17 12:05] humolife 作成 |
プログラム言語:php:laravel:フォーム:old関数を使った書き方 [2020/01/17 12:06] (現在) humolife [old 関数を使った if 文の書き方] |
||
---|---|---|---|
行 14: | 行 14: | ||
===== old 関数を使った if 文の書き方 ===== | ===== old 関数を使った if 文の書き方 ===== | ||
< | < | ||
- | # 入力値、もしくは初期値が 1 ならば checked | + | # is_check の入力値 |
<input type=" | <input type=" | ||
@if (old(' | @if (old(' | ||
行 20: | 行 20: | ||
> | > | ||
- | # 入力値、もしくは初期値が 1 ならば show クラスを指定 | + | # is_check の入力値 |
<div | <div | ||
@if (old(' | @if (old(' |