Question: Question: must create two functions in the controller the first one will insert record to the database and the second one will retrieve record from
Question:
must create two functions in the controller the first one will insert record to the database and the second one will retrieve record from database.
The controller is used to handle the user request and retrieve responses to the users. Create the following function in the controller. 1. Create the function with the name storeReconrd to insert the employee information into the employee table. Use the eloquent model for the insertion. The columns of the table are mentioned in question 4 part two. 2. Create a function with the name ShoWRecord this function will retrieve the employee information from the table and pass that information to the show page.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
