Just read, understand, copy those code and replace by your variables and fields it should work correctly. Don’t scared of those codes, most of them are for presenting data with professional way.

If you don’t understand just contact with me with email or phone.

Controller Index Function: Pass request to our functions and returning data with collection. You can return without collection also.

Step1: Passing all request to findBy function.

2. FindBy Function: Here we pass data to main method and organize data.

--

--