You can output the raw query for an Active Record Query by tagging .explain at the end. Very useful for complex queries where it’s hard to understand what is happening under the hood 🤯. You can read the docs for more info.
I haven’t used a community supported router firmware in a couple of years and there were a few hurdles to overcome. Here’s a quick note on things to look out for when installing OpenWrt on your router (example using Nighthawk R6700). Why OpenWrt? OpenWrt seems to be the most recommended open source os for routers. … Read more
TL;DR It was hard but worth it. First Job My first developer position was the challenging to find. After having done freelance work for a handful of years and another two teaching myself modern development frameworks, it took roughly 100+ applications to land my first role. The position was a sole developer role for a … Read more
So if you have a Laravel + Vue app that you deploy to Heroku, and you want Heroku to run the NPM and Webpack build scripts, here is what you do. Make sure you have Node.js bundle in your instance. You can do this through the CLI or manually in the settings page Add build … Read more
If you are using Ionic + Android Studio to publish an app and run into this error on upload, “You need to use a different package name because “io.ionic.starter” already exists in Google Play”, do this. Check build.gradle (Module:android.app) file in Gradle Scripts Change the applicationId to a unique ID. The nomenclature is typically “appname.yoursite.com” … Read more
The Ionic framework team launched a Vue version recently and I have been testing it out. I made a prototype application and it was quite challenging to get started. The problem is that the documentation is written from the perspective of an Ionic developer instead of a Vue developer learning Ionic. Moreover, some of the … Read more
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
If you want to know how many times your Laravel query is hitting the database you can use this snippet by @Tarasovych from StackOverflow. Pretty handy!