🔥 Laravel Tip: make method constructor parameters
Apr 16, 2022
You might already know that you can resolve a class instance from the container with the make method.
But in some cases, we need to pass parameters to the constructor. We can do that by passing an array as a second parameter.
But in some cases, we need to pass parameters to the constructor. We can do that by passing an array as a second parameter.
![tip-image-0](https://res.cloudinary.com/dpmeu3otn/image/upload/v1666554717/tips/dnvs7jorxbq34uo8sksn.jpg)
Other tips:
🔥 Laravel Tip: Streaming Results Lazily
Apr 2, 2022