ユーザ用ツール

サイト用ツール


プログラム言語:php:laravel:フォーム:formファサードを使った書き方

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン 両方とも次のリビジョン
プログラム言語:php:laravel:フォーム:formファサードを使った書き方 [2021/05/28 16:13]
humolife [【Laravel】Form ファサードを使った書き方]
プログラム言語:php:laravel:フォーム:formファサードを使った書き方 [2021/09/13 12:09]
humolife [未整理:そのうち書く]
行 12: 行 12:
  
 # ルーティング指定 # ルーティング指定
-{{ Form::open(['route' => ['home.index', $user->id]]) }}+{{ Form::open(['route' => 'home.index']) }} 
 +{{ Form::open(['route' => ['home.index', $user]]) }}
  
 # コントローラ指定 # コントローラ指定
行 38: 行 39:
 # チェックボックス # チェックボックス
 {{ Form::checkbox('hobby[]', '映画', null, ['class' => 'cssクラス名']) }} {{ Form::checkbox('hobby[]', '映画', null, ['class' => 'cssクラス名']) }}
 +
 +# ラジオボタン
 +<label>{{ Form::radio('gender', 1, true) }}<span>男性</span></label>
 +<label>{{ Form::radio('gender', 2, null) }}<span>女性</span></label>
 </code> </code>
プログラム言語/php/laravel/フォーム/formファサードを使った書き方.txt · 最終更新: 2022/07/21 18:56 by humolife