Open alifoz opened 7 years ago
Happy to take a look into this one, but I think we're going to need a little more of your code to work out what is going on.
In addition, can you confirm that value of old('datetime')
when you pass it into the method?
Thank's. Let's the code...
1) I have a method create in controller
public function create($id){
$history = new History;
$devices = DB::table('devices')
->join('models','models.id_model','=','devices.model_id')
->where('id_device', '=', $id)
->orderBy('models.model_name','asc')->pluck('models.model_name','devices.id_device');
return view('deviceapp.history.history',['history'=> $history,'devices' => $devices ]);
}
and my view is
Why are you providing old('x')
to each field, isn't that handled for you already by the library?
For someone fields the library work well, for another don't work.. For example...
this worked:
BootForm::textarea('details','Notes')
this didn't work:
BootForm::date('datetime','Date')
Because this, I tried to pass the old('x') ... BootForm::date('datetime','Date',old('datetime'))
but didn't work...
@alifoz
BootForm::date('datetime','Date', $history->datetime)
this will work for you i have same problem in date but at time of edit i have to pass data in date field only otherwise model binds data 😄
thank's
Hi! I have problems with:
{!! BootForm::date('datetime','Date' }
{!! BootForm::date('datetime','Date',old('datetime') }
This code not working, all the times the view show me a blank field datatime. (In the database, datetime field has a value, and when i change, this code not fill the field with the old value for the field 'datetime'.)
Can you Help me ?