デフォルトの列の値と等しくない場合は、データベースのテキストフィールドに値を設定します。 $event_date
のデフォルトの列の値は'0000-00-00 00:00:00'
です。populateテキストが値またはプレースホルダーでラベリングされています
$event_date='0000-00-00 00:00:00'
その後、私は、HTMLコンテンツを出力するときは、{そう逃れるべきではないプレースホルダDate
@if($conversation->event_date!='0000-00-00 00:00:00')
<div class="form-group">
{{ Form::text('event_date', null, array('class' => 'form-control
conversation-field')) }}
</div>
@else
<div class="form-group">
{{ Form::text('event_date', null, array('class' => 'form-control
conversation-field','placeholder'=>'Date')) }}
</div>
@endif
は何ですか? –