Automatically generate RSS feeds in a Laravel application
One handy way of keeping users up-to-date on your content is creating an RSS feed. It allows them to sign up using an RSS reader. The effort to implement this feature is worth considering because the website will have another content distribution channel. Spatie, a well-known company by creating hundreds of good...
Read / 7 minutes readGenerate Laravel migrations from an existing database
One of the common challenges when migrating a legacy PHP application to Laravel is creating database migrations based on the existing database. Depending on the size of the database, it can become an exhausting task. I had to do it a few times, but recently I stumbled upon a database with over a hundred tables. As a...
Read / 5 minutes read legacy-to-laravelSchedule periodic database clean-up on Laravel
For obvious reasons, database tables tend to grow in size as time passes. Therefore, it usually requires tuning from time to time to maintain queries performing well. Some common techniques are creating indexes, rewriting queries, and even redesigning the database. But there is another obvious solution that could...
Read / 5 minutes readPassword confirmation for sensitive actions on Laravel
I recently wrote an article about how Laravel easily allows controlling browser sessions. That article was motivated by a personal bad experience of having my cellphone stolen. To prevent other people in possession of the device from having access and being able to perform actions. But it took some time for me to...
Read / 5 minutes readMigrate passwords from a legacy PHP application to Laravel
Migrating a legacy PHP application to Laravel will probably require a custom hashing driver.
This happens because Laravel’s default hashing driver is bcrypt and has argon as another built-in option, while MD5
, SHA-1
, SHA-256
, and SHA-512
were and still are widely...