I need to place a search field in a form and if it finds the record in the database, complete the form data retrieved from the database, I can perform the search in the index method, which shows me the data in a table, but I want to do the same but for a form, I'm working on laravel 5.5.
For example, if you enter the doctor's routine and it already exists, you should recover the data from the database, otherwise indicate that it is not registered.
Thanks in advance to anyone who can help me