2017-07-14 1 views
0

私は自分のアプリケーションに登録フォームを持っています。値を入力してフォームを送信すると、すべてが正しくdbに格納されます。Laravelはフォームに値を渡さない(プロダクションのみ)

登録を編集すると、チェックボックスまたはドロップダウンで選択した値を除いて、以前に入力したすべての値が表示されます。地元のenvoirmentの奇妙なことは完璧に動作します。しかし、プロダクションでは、チェックボックスとドロップダウンの値は表示されません。

この

は私のコントローラ

public function edit(Registration $id) 
{ 
    return view('registrations_edit', ['registration' => $id]); 
} 

であり、これは私の見解

<div class="form-group row"> 
    {!! Form::label('grund_beanstandung_kommentar', 'Grund Beanstandung Kommentar:', ['class' => 'control-label col-md-3']) !!} 
    {!! Form::text('grund_beanstandung_kommentar', $registration->grund_beanstandung_kommentar, ['class' => 'form-control col-md-7']) !!} 
</div> 
<div class="form-group row"> 
    {!! Form::label('sachschaeden', 'Sachschaeden:', ['class' => 'control-label col-md-3']) !!} 
    <label class="radio-inline">{{ Form::radio('sachschaeden', 1, $registration->sachschaeden === 1 ? true : false) }} Ja</label> 
    <label class="radio-inline">{{ Form::radio('sachschaeden', 0, $registration->sachschaeden === 0 ? true : false) }} Nein</label> 
</div> 
<div class="form-group row"> 
    {!! Form::label('praeparat_im_hause', 'Präparat im Hause:', ['class' => 'control-label col-md-3']) !!} 
    <label class="radio-inline">{{ Form::radio('praeparat_im_hause', 1, $registration->praeparat_im_hause === 1 ? true : false) }} Ja</label> 
    <label class="radio-inline">{{ Form::radio('praeparat_im_hause', 0, $registration->praeparat_im_hause === 0 ? true : false) }} Nein</label> 
</div> 
<div class="form-group row four-height"> 
    {!! Form::label('grund_beanstandung', 'Grund Beanstandung:', ['class' => 'control-label col-md-3']) !!} 
    <label class="inline">{{ Form::checkbox('grund_beanstandung_verpackung', 1, $registration->grund_beanstandung_verpackung === 1 ? true : false) }} Verpackung beschädigt/verschmutzt</label><br/> 
    <label class="inline">{{ Form::checkbox('grund_beanstandung_geruch', 1, $registration->grund_beanstandung_geruch === 1 ? true : false) }} Geruch/Geschmack/Aussehen verändert</label><br/> 
    <label class="inline">{{ Form::checkbox('grund_beanstandung_transportschaden', 1, $registration->grund_beanstandung_transportschaden === 1 ? true : false) }} Transportschaden</label><br/> 
    <label class="inline">{{ Form::checkbox('grund_beanstandung_anderes', 1, $registration->grund_beanstandung_anderes === 1 ? true : false) }} Anderes (bitte angeben)</label><br/> 
</div> 

テキストフィールドは、コントローラから値を取得しますが、他の3ラジオボタンとドロップダウン・メニューのドン」されていますコントローラから値を取得します。

この問題が起こっている理由を知っている人はいますか?

種類は ケビン

+0

'==='の代わりに '=='を使用すると、ライブサーバーではどうなりますか? –

+0

@Taylor Foster働いてくれてありがとう!!!!!!あなたは仕事の終わりを救った:D –

+0

素晴らしい!私は答えとしてそれを追加します]] –

答えて

0

は、あなたの深いが==に等しい倍増する===に等しい変更について。ブレードテンプレートに===を使用すると、いつもこのようなトラブルが発生します。私が貢献できる唯一のことは、何らかの形で私たちの価値が文字列に変換され、intと照合しているからです。その2つは同じ型ではないので、深い等しい。

+0

おかげさまで@テイラーフォスター働いた:D –

関連する問題