Blog

  • Why you should always assert your response codes when using assertSee in Laravel

    I was writing my graduation project’s source code in TDD style, and noticed that my browser was displaying a big fat 500 error page, while my tests were still passing. After wondering why for a while, I decided to assert the response code, and voila, after asserting a status 200, my tests were not passing…

  • JSON vs JSONB columns in Laravel

    I once wanted to dig a little deeper into JSON column types, to see if they were a fit for the design I had in mind. The best way to get more experience with them is, well, toying around with them! So I spun up a fresh Laravel installation and created a `Test` model with…

  • Laravel package to streamline config values with dependency injection

    A Laravel package can be used to develop faster, or provide a better developer experience. One such package is the package I just released, which allows users to autowire config values through dependency injection. Purpose of the package The package allows developers to access their config values easily and conveniently, and the two strategies offer…