Laravel Bytes

Welcome to the home for Laravel-oriented content on Fly.

By Kathryn Anne Tan

Offloading Data Baggage With Livewire

In Hoarding Order with Livewire we implemented a client paginated table that relies on data accumulation. Instead of waiting for an entire dataset to load, the table periodically received and accumulated smaller portions of the dataset using Livew...

Read more 

Read more
By Chris Fidao

Streaming to the Browser With Livewire

We're going to see how to stream content to the browser using Livewire. 🤔 What's that mean? Here's an example from Chipper CI, which runs "builds" when you push code to git. When a command is run (perhaps composer install), the build output is str...

Read more 

Read more
By Chris Fidao

Global Notifications With Livewire

I've never met an app that didn't make me wish for a global notification system. What's that mean exactly? I always want an easy way to display notifications on any page of my application. It's "global" because I can show it anywhere. Livewire (an...

Read more 

Read more
By Kathryn Anne Tan

Hoarding Order With Livewire

In this post we'll craft ourselves a hassle-free ordering of groupable data across table pages, and land our users a lag-free pagination experience. In order to do so, we'll use Livewire's polling feature to accumulate ordered data, and keep a cli...

Read more 

Read more
By Johannes Werbrouck

Integrating the Elastic Stack (ELK) Into a Laravel App on Fly.io

The Elastic stack is hugely powerful, and a great tool in any developer's arsenal. Since this is an intro I'll keep it simple but please let me know if you're interested in seeing more of this! You can find me on twitter or in the Laravel category...

Read more 

Read more
By Chris Fidao

Deus Ex Machina

I've been on the search for a remote development setup for the better part of 11 years. Originally this was due to falling in love with an underpowered Macbook Air. Now I'm older and impatient - I'm opting out of dependency hell. Recently, I lande...

Read more 

Read more
By Apród Illés

Reusable, Dynamic Tables With Laravel Livewire

Tables have always played an essential role in the history of web development. Decades ago, tables lived their golden age; they were used not only to structure data but also for the layout of web pages. It was easy to arrange things with tables, a...

Read more 

Read more
By Chris Fidao

Taking Laravel Global

Fly.io puts your application close to your users by making global deployments easy. It's literally just a few commands. Here's an example of showing an app, currently in DFW (Dallas), scaled out to also include Frankfurt and Singapore: # Add 2 ad...

Read more 

Read more
By Chris Fidao

Multi-Region Laravel With PlanetScale

We're going to see how to serve Laravel globally. Fly.io is great at serving your application from servers in multiple regions. PlanetScale is great at putting your data close to your application servers! We're going to use PlanetScale Portals to ...

Read more 

Read more
By Chris Fidao

Deploying With Private Composer Packages

If you've read anything on Fly.io, you've probably noticed a snippet like this: We transmogrify Docker containers into lightweight micro-VMs and run them on our own hardware in racks around the world, so your apps can run close to your users. F...

Read more 

Read more
By Apród Illés

Customize a Laravel Select Component

When it comes to form elements, we might immediately reach for an open-source or paid library. Pre-built components speed up development and using well-tested, robust libraries take a lot of pressure off our shoulders. But what about when we need ...

Read more 

Read more
By Chris Fidao

Full Stack Laravel

We have docs on using fly launch to get you up and running quickly with Laravel, but let's talk about all the other stuff you probably want - Redis, MySQL, cron, and queues! We're gonna spin up a new Laravel installation, add some user authenticat...

Read more 

Read more