Quality tutorials & resources. No BS._

Page 2

Advanced Data Fetching with Nuxt 3 Part 9 of 9 in Upgrading Nuxt 2 to Nuxt 3
Author Dan Pastori avatar
Dan Pastori January 26th, 2023

Working with ROAST and Bugflow, both having a Nuxt 3 frontend, I’ve come across a lot of scenarios where I’ve had to do some more advanced data fetching with Nuxt 3 and the provided composables. I’ve written a basic article about using asyncData() in Nuxt 3. This article will be extending on the previous article […]

Keep Reading →
Break between articles
Managing Pivot Data with Laravel Eloquent
Author Dan Pastori avatar
Dan Pastori October 25th, 2022

Laravel provides the most beautiful Object Relational Mapping systems I’ve ever used with Eloquent. Eloquent has so many powerful features making working with a database so enjoyable! One of my favorite features of Laravel Eloquent is the many-to-many relationship structure. When I had to write raw SQL, I always hated many-to-many relationships. With Eloquent, they […]

Keep Reading →
Break between articles
Get Active Element with JavaScript
Author Dan Pastori avatar
Dan Pastori October 18th, 2022

Recently, I’ve been working on AmplitudeJS 6.0. One of the features of Amplitude is to bind key events to certain methods. A simple feature with one caveat. If you bind the key press events to the page, but the user is in a form field, the event will still fire. This is un-wanted behavior. Luckily […]

Keep Reading →
Break between articles
Detect if Click is Inside an Element with JavaScript
Author Dan Pastori avatar
Dan Pastori October 11th, 2022

So this is a little script that I’ve included in some UI elements to check if a click takes place within the scope of the element. Why would you need this? Say you have a little drop down, autocomplete, etc. that should close when a click occurs outside of the element. You need to see […]

Keep Reading →
Break between articles
Filter, Sort, and Search Arrays with JavaScript
Author Dan Pastori avatar
Dan Pastori October 4th, 2022

To add that next level user experience to your frontend, you need speed. Areas of your app that always need just a little optimization are ones that display and compute data. You have a decision to make. Do you load more data from the API or do you allow the user to manipulate and filter […]

Keep Reading →
Break between articles