Laravel Collections

I you do any work with arrays in Laravel or Craft you will instantly benefit for harnessing the power and utility of Laravel Collections. For Laravel, for Craft

Actions

Great concise video on Laravel actions, how to create them and how to test them.

abort_if

Another handy little Laravel helper, abort_if. Perfect little helper inside actions when things go wrong. 

Laravel 'wasRecentlyCreated'

Great little Laravel model tip. Use the "wasRecentlyCreated" model attribute to check if your model was created or found 👍

Shopify Sections API

You can use the Section Rendering API to request the HTML markup for theme sections using an AJAX request. This can allow you to update page content without reloading the entire page by fetching and dynamically replacing only certain elements 🤯. More details here, https://shopify.dev/docs/api/a... Skip to 2:40 in the video to see Wes Bos explain in.

Laravel + React

It's hard to beat Laravel for backend development and React is a force for front end development. Inertia.js is the little bridge flowing the traffic between the two. This YouTube series does a 🧨 job of explaining how to make it happen. 

Utopia Font Scaling

An elegant way to scale fonts and spacing for responsive designs. A generated example with 8 scales 

https://utopia.fyi/type/calculator

Fetch PHP

FetchPHP is a PHP library that mimics the behavior of JavaScript’s fetch API using the powerful Guzzle HTTP client. 🐕

Flexbox text wrapping

A super flexy way to wrap button text when a row has multiple buttons/options. 

HTML Datalist

Discovered a new HTML element `datalist`. Adds a dropdown autocomplete option to input fields. Finding features like this in native HTML is 🧨

Tips & Tricks

A collection of web development related tips, tricks and snippets that I wanted to remember for myself and share with others. Hopefully you find them as useful as I have.