Quality tutorials & resources. No BS._

Featured Subjects

See all →

Free Courses

View all courses →

Latest Posts

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
Caching API Endpoints with Laravel
Author Dan Pastori avatar
Dan Pastori September 27th, 2022

As your API begins to grow, you will want to start looking into some performance optimizations. Laravel provides a variety of different options when it comes to caching endpoints, such as Redis, Memcached, DynamoDB, and even simpler file caches. By default, Laravel is set to cache in a file. Since Laravel is facade driven, basic […]

Keep Reading →
Break between articles
1 2 3 29