The installation process for Postgres on Ubuntu or Linux Mint is, like a lot of things in the Linux world, less than intuitive for new users. As much for my own benefit as anyone else's, now I am going to walk through the steps to getting Postgres installed and configured on a Linux box.
Although Ubuntu has its own official MongoDB package, there are chances that we need to install more updated version. As the time of this writing, the latest version of MongoDB available is 3.6. Follow these steps to install MongoDB Community Edition package on Linux Mint 18.3 Sylvia:
Laravel's events provides a simple observer implementation, allowing you to subscribe and listen for various events that occur in your application. Events serve as a great way to decouple various aspects of your application, since a single event can have multiple listeners that do not depend on each other. So, we'll use Laravel Events to log each user's login information.
When logging in to a Laravel application, we usually needs to enter email and password. However, there was a client asked to make the login works with either email or username. After digging around, it turns out to be an easy task. How is it possible?
When developing a web application, sometimes we need to schedule some task. Most of the time we will create a php file which then create cron schedule to run the file. Here in this post I will share how to add CLI in Slim 3 Framework and schedule it using cron.