I would like to explain the idea of business logic this time.
It is a program process that processes data.
Specifically, it is used when exchanging data
such as "how to process data", "which data to acquire", and "what procedure to process".
You need to be aware that the methods for interacting with the table are in the model.
The controller only calls the process using the function of the model, and does not build complicated process.
Therefore, let's write the method for performing the search function in the model
!
If you are programming, you may come across some words that you do not understand. Because you don't understand, let's think about what you mean and when you need it each time, investigate and deepen your understanding together! Thank you for reading to the end!