February 23, 2022
I tried meilisearch for the first time the other day. It worked great and it was a breeze getting it up 'n' running following the instructions in the laravel documentation I had some trouble,...
ReadSeptember 18, 2021
Testing sql-queries can be challenging. Not only do you need to have a database to test against, you also need to seed it data to have something to test with. Laravel, however, makes this process...
ReadSeptember 5, 2021
First of all, I'm sorry for the click-baity title. I am a huge proponent of testing! However, I think some people exaggerate the benefits, and claim that if you just write tests for your code, you...
ReadOctober 4, 2020
Last week I noticed that some of our image that got uploaded from the trix editor in Nova to S3 was containing non url-safe characters. No big deal i thought, there must be an easy way to 'sluggify'...
ReadFebruary 10, 2019
Comming from php, I noticed something in javascript that I found pretty wierd - how the the logical or operator || behaves. In php, the expressions on boths sides of the or operator is being casted...
ReadMay 31, 2018
Laravel collections is one of my favorite features of Laravel. I use them about every time I need to loop through something or deal with arrays. Some methods are quite similar to each other, though,...
ReadApril 23, 2018
Have you ever been confused about what exactly these operators do? I know I’ve been, so I spent a little time to look it up. It turns out it’s quite simple really, but while i did my research, I...
ReadApril 23, 2018
A multilingual site comes with a few more challenges than a normal single language site. One of those challenges is how to provide the translated strings to your frontend framework. How to approach...
ReadSeptember 26, 2017
Almost all of the apps i write nowadays are communicating with an external API of some sort. It can be an API i wrote myself, or some service used to get or post data. Some of these services provides...
Read