Articles

Showing 10 posts
March 15th, 2021

Laravel Livewire Infinite Scrolling

When I set out to implement infinite scrolling in Livewire, I didn't think it would be this simple. It turns out that loading more records with either the click of a button or the scroll of a browser window is incredibly straightforward.

Author
Alex Garrett-Smith
Laravel
Livewire
February 22nd, 2021

Laravel Websockets with Nuxt

Setting up Websockets with a separate API and client can be pretty tricky. By the end of this article, you'll be able to listen for realtime events fired from your Laravel app, in Nuxt.

Author
Alex Garrett-Smith
Laravel
Nuxt
December 27th, 2020

Laravel Authentication: UI vs Jetstream vs Fortify vs Breeze

In this article, I want to outline as simply as possible the differences between four first-party Laravel packages – UI, Jetstream, Fortify and Breeze. All, to some extent, help you scaffold your apps (or parts of them) so you can get on with the good stuff.

Author
Alex Garrett-Smith
Laravel
December 24th, 2020

How to change the host and port of your Nuxt apps

For whatever reason (usually CORS), you'll need to change the host and port of your local Nuxt development server at some point.

Author
Alex Garrett-Smith
Nuxt
December 18th, 2020

Tailwind in Vue CLI

Need to get Tailwind set up with a Vue CLI-built project? Here's a handy step by step guide.

Author
Alex Garrett-Smith
Tailwind
Vue
July 16th, 2020

Laravel Websockets on Forge (The Complete Guide)

The popular Laravel Websockets package makes it really easy to get realtime functionality working on your Laravel projects, but what happens when it's time to deploy? If you''re using Forge, this article guides you through every step of the way.

Author
Alex Garrett-Smith
Server
Laravel
June 8th, 2020

Accessing authenticated user details with JavaScript in Laravel

If you're using Vue/Alpine or any other JavaScript in your Laravel projects, chances are at some point you'll need to grab authenticated user information.

Author
Alex Garrett-Smith
Laravel
May 19th, 2020

Computed properties in Alpine.js

If you're using Alpine.js and also use a framework like Vue.js, you're probably missing computed properties right now.

Author
Alex Garrett-Smith
Alpine.js
May 9th, 2020

Using Vuex with the Vue Composition API

While I was learning the Vue Composition API, something suddenly hit me. What about Vuex? How will I beautifully map my getters, mutations and actions like I currently do with the Options API?

Author
Alex Garrett-Smith
Vue
May 9th, 2020

Using the Nuxt fetch method for effortless API sorting and filtering

If you've used Nuxt before, you're probably using the `asyncData` method in your pages to pre-fetch content from your API to be server-side rendered.

Author
Alex Garrett-Smith
Nuxt

Tags