Laravel conditioned relationships and its danger zone

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

Continue reading Laravel conditioned relationships and its danger zone

Chat with Laravel – Pusher and Socket.io at your command

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