Blog
August 27, 2020
Debugging uploads in Laravel
Recently while debugging a file upload issues, i came accross a few helper methods that can save a lot of time.
Uploaded file returns a instant of Illuminate\Http\UploadedFile
, which...
August 23, 2020
Laravel file uploads limits
Over the years, Laravel file uploads have gotten so simple that most of the time they just work. Livewire has also added file uploads to its api. However there are some issues that can pop up when...
ReadMay 30, 2020
Livewire component that updates the cart counter
Let's say we have a button that adds a product to the cart dynamically. Maybe it does this through VueJS component, Javascript, or in our case a Livewire component. We want to update the counter...
ReadMay 24, 2020
Handling Laravel's 'ModelNotFoundException' globally
Laravel offers a pretty elegant way of handling exceptions. Let's say you wanted to retrieve a record from a database, and for some reason it's not found. Maybe the user entered the wrong id in the...
ReadMay 18, 2020
How to filter a list using Laravel query builder and checkboxes
We have a list of products that we need to filter. For example, we have a storefront that sells sporting apparel. Each product has a brand (Nike, Adidas etc.) and a category (t-shirts, shoes etc.)....
ReadMay 15, 2020
Ubuntu LAMP setup for Laravel
If you need a local server for testing, or want to set up a production server, below are the step-by-step instructions on how to install a Ubuntu server. The focus will be on setting up a LAMP stack...
Read