Choosing a provider for your API authentication can be a tricky spot. Which one should we take? Passport? Maybe JWT? Or wait, what about Sanctum? Oh and don’t forget API tokens! Ahh! So which one You should take? Let’s find out what they provide, what they are used for, and why one could fit your needs better than another.Continue reading API Authentication – what to choose with Laravel?
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.Continue reading Queue control and chaining
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 thatContinue reading Laravel conditioned relationships and its danger zone
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.Continue reading Chat with Laravel – Pusher and Socket.io at your command