Using Capacitor Core Plugin within Vue

The documentation from Ionic and Capacitor doesn’t make it clear how to instantiate the Plugin import within Vue. Most of the documentation is either React or Angular. So it looks like you have to create an async method to call the plugin’s method and return the desired info.

Using NPM Packages within Vue

As a Vue user you might have to frequently reach for standard javascript packages, since there isn’t always a Vue flavor, or if there is one it might be abandoned, or you don’t exactly want to mess with a middleman. What do you do in that case? @Himanshu Sharma has a good writeup in SO. … Read more

Laravel Eloquent Select Column as Alias

If you’re like me and like to use select statements to return specific columns. You’ll be happy to know that Eloquent allow you to use select column as alias just like in SQL. Which can be make things a breeze, depending on what you are doing. Remember to use the dot syntax to specify a … Read more

Laravel Query Builder Distinct

This is a shoutout to Laravel’s Query Builder method distinct(). I feel sad and embarrassed that I didn’t know about it sooner. There are a lot of instances where I need to get a column’s unique values. And instead of using groupBy() and wasting a lot of resources. You can use distinct(), which will search … Read more

Fast Insert CSV Data to Laravel From S3

The Story (skip if ya just want the code) I’ve fussed with this problem for weeks. If you need to import massive amounts of csv data (100k to 10mil) to your Laravel site there’s a lot of broken information. Some of it is outdated, others are just bits and pieces. But here’s generally how the … Read more