Laravel queues are powerfull and often adds quite a lot of flexibility to the system. While this is great – it can be very tricky to manage their priorities and ensure that they only run in specific order or if it’s really important – you run it as a priority over everything else.

A little less known fact about Laravel relationships is that you can make them conditioned. This means, that you can extend the relationships to have a default condition already assigned to them. For example, you want to take latest entries or order them by likes count by default. Here’s a quick guide on how to do that

From time to time we are asked to integrate a real-time chat application or real-time notifications in our system. While this can be painful there is no actual need to be afraid of the time consumption. With this tutorial I’ll try to show you how to create a very basic chat application tutorial which can be easily transformed into any type of notification or real-time data synchronisation without much effort or coding using either Pusher or Socket.io.