timezone icon indicating copy to clipboard operation
timezone copied to clipboard

Default to exisitng value

Open mmguide2003 opened this issue 8 years ago • 2 comments

Using Laravel and wondering how you default to an existing db value on the edit blade.

mmguide2003 avatar Jun 15 '16 15:06 mmguide2003

Can you clarify what you are trying to ask?

If the user hasn't selected a value (thus you don't have a timezone set for that user on the DB), you can just set $selected to whatever you want the default to be.

camroncade avatar Jun 15 '16 15:06 camroncade

Seems it doesn't like Input::old('timezone'), which shows the db version or the recently input one. I have found away around.

mmguide2003 avatar Jun 15 '16 16:06 mmguide2003