Read Me(Munazzil).
About Code Pros And Cons.
Pros.
- It has been used DB name from within the function and it is pros since we can easily access the data.
- It has protected , public function with limited access for the user usability.
- Can get user inputs via Request within function and can easily check on that.
- Return response has been used then can easily trigger the events and shoot the message.
Cons.
- So many authenicated user request we can minimize with one class , and can use within the private construct function and recall it on particular the function.
- We can minimize code with isset function and write single line php function, then easily can readeable and can reduce code lines.