Define Method in Model
We now need to implement the logic for each of these in a model at
Create. This method allows users to create or insert a new record in the database
Read. This method allows users to search and retrieve specific records in the table and their values.
Update. This method is used to modify existing records that exist in the database.
Delete. This method allows user to remove records from a database that is no longer needed.
Validation. It is the most important aspect while designing an application. It validates the incoming data.