In this post, I'm going to walk through how to make a Facebook Messenger chat bot using my open source Survey Bot Repository. By the end of this tutorial, you'll have a fully functioning bot that responds to a series of questions and saves the information to a database
One of the most powerful functionalities in Laravel is the event. This feature enables all the triggers of various tangentially related functionality to occur throughout the life cycle of a model instance. Plus, events are always listening – meaning you don’t have to explicitly call them in the code to harness their powers. In this post, we’ll implement a sample Laravel model event listener.
Whenever working with data using Laravel, it can be easy to write a few small Eloquent queries within your blade files to access the database. However, this practice can quickly spiral out of control if you're not careful, increasing query load time and destroying the performance of your application. In this post, I'll explain how to extract commonly used queries to a view composer so that they can be shared across multiple views that use different blade files.
Often times when developing using Laravel, I end up stuck on an error that seems to obfuscate the real problem with my code. Luckily, there is a simple way to tail logs in Laravel that can help you get back on track!
In this post, I'm going to walk through a small code sample that automates unit testing for a sort functionality. We will call a JSON API URL, and then test that the information received is properly sorted. We'll also make the tests completely dynamic, enabling us to test multiple parameters to sort on.