Laravel: Usage of old() in form when editing

Best practice to show old value when editing a form in Laravel?
Laravel function old have default parameter if no old data found in session default value will be displayed.

function old($key = null, $default = null)

Replace expression in template with the default object data.




Further Resources:
How to Hire a Great Laravel Developer

Register Or Login to leave a comment.