Prioritizing Queued Jobs in Laravel (Beanstalkd Driver)
When jobs are dispatched and queued in Laravel, they are processed in the order that they were dispatched. I needed a way to process specific jobs before others, irrespective of …
When jobs are dispatched and queued in Laravel, they are processed in the order that they were dispatched. I needed a way to process specific jobs before others, irrespective of …
If you have tasks that run using Laravel’s Task Scheduling feature, you may want to monitor that these tasks ran and what output they generated. You can currently use sendOutputTo() …
Here’s a clean way to distinguish between soft & hard deletion events on your soft deletable Eloquent model. Include this trait into your Observer. You can find the gist here …
This is a helper trait that I use when I have a Laravel console command that I’m using on development but would never want that command to run in a …
An AVL tree is a self-balancing binary tree. That’s all I remember from when I wrote this java implementation of an AVL Tree a few years ago. This code may …
PHP’s mysql_affected_rows() is used to get the number of rows that were “affected” by the last query executed using mysql_query(). Therefore, an UPDATE query that set the value of a …
When creating a zip archive with PHP’s ZipArchive utility, you have the option of specifying a local name for each file so that when the zip is downloaded and extracted, …
This article will guide you through the steps of enabling access to your web server from a computer outside of your network by using your computer’s external IP address. Steps …
Implementing login functionality in your application comes with the responsibility of securely storing your users’ passwords in your database. Storing the password as plain text is highly irresponsible since a …
Font files such as TTF and OTF have metadata embedded in them with information such as the font’s name, what font family it belongs to and so forth. I wrote …