How to mock dependencies in Laravel (Full 2022 Guide for beginners)
Testing your application code is absolutely a skill you should learn. It improves your own confidence so much and it keeps your application much more maintainable in the long run. Mocking is an important part of testing you code. However, it can also be a bit hard to fully grasp the concept. In this article I’ll show you all the common ways of mocking objects in Laravel.
What is mocking?
First of all,