Josh Hanley πŸ‡¦πŸ‡Ί's Avatar

Josh Hanley πŸ‡¦πŸ‡Ί

@joshhanley.au

Working fulltime on fluxui.dev and core contributor to @LaravelLivewire. Sailing, Camping, Web Developer using PHP/ Laravel/ Livewire

5,208
Followers
173
Following
500
Posts
22.10.2024
Joined
Posts Following

Latest posts by Josh Hanley πŸ‡¦πŸ‡Ί @joshhanley.au

Preview
Making the Livewire Flux Editor component return JSON instead of HTML

Flux uses Tiptap for its Editor component - offering incredible interoperability with Statamic's Bard fieldtype. With one catch: Flux's implementation returns HTML.

Never fear, @joshhanley.au paired with me to help tweak the getter to get JSON instead.

www.martyfriedel.com/blog/making-...

29.10.2025 22:24 πŸ‘ 12 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Preview
Release v4.0.0-beta.1 Β· livewire/livewire Livewire v4 beta release ⚑️ We’re excited to announce the first beta release of Livewire v4! This version brings major improvements, internal rewrites, and new features. Things are still in progres...

Livewire v4 beta has been tagged! Go forth ⚑️ github.com/livewire/liv...

Docs can be found here livewire.laravel.com/docs/4.x/upg...

28.10.2025 22:17 πŸ‘ 32 πŸ” 4 πŸ’¬ 0 πŸ“Œ 0

Agreed!

28.10.2025 22:12 πŸ‘ 6 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

You might be waiting a while, it’s not something we plan to change. What’s wrong with tables?

06.09.2025 22:57 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Yep! All in the matter of time 😁

05.09.2025 21:32 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Video thumbnail

We've just fixed up how sidebar groups are handled, so make sure to upgrade to v2.3.1!

05.09.2025 04:20 πŸ‘ 4 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0
Video thumbnail

We just shipped a ton of improvements to Flux's sidebar! πŸ‘Œ

- Collapsible sidebars
- Collapsed state auto-persisted in localStorage
- Sidebar item group icons
- New `sidebar.search` component
- + like 5 other new sidebar components

Checkout the blog post: fluxui.dev/blog

05.09.2025 04:17 πŸ‘ 12 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0

Love it! 😁 yep it’s a default for all projects for me now 😊

09.08.2025 03:45 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

New Flux release: v2.2.4 with a bunch more fixes! 😁

09.08.2025 02:07 πŸ‘ 16 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0

And how are you going?

Yep, a good friend will always want to know. There have been times when I've got so much going on in my world, when I call my best friend, I rant for a bit. But then I always ask, so how're you doing? No matter how long into the conversation we may be. But it goes both ways.

07.08.2025 03:28 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Soon ℒ️

30.07.2025 22:11 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

To all of those social butterflies in Denver - enjoy Laracon!

Don’t forget to keep an eye out for someone seeming on the outer, someone needing to feel included, someone needing a smile.

There are lots of invisible developers out there.

Try to do something that can help others feel seen.

28.07.2025 09:48 πŸ‘ 31 πŸ” 8 πŸ’¬ 0 πŸ“Œ 0
How to save datetimes for future events - (when UTC is not the right answer) Imagine that it’s January 2015 and you’re making an appointment in a calendar application for ameeting that will take place in Santiago, Chile on the April 3...

Here's another great article that changed how I viewed storing dates/times www.creativedeletion.com/2015/03/19/p...

23.07.2025 22:22 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Thankfully, while events aren't fun to deal with, they are definitely reliable. I've been using this pattern even since v2 for shared modals.

22.07.2025 03:27 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Yep! Just tested this and yeah it works as I was hoping 😁

22.07.2025 03:25 πŸ‘ 1 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0

I think I know what you want and it's coming in v4 πŸ€«πŸ‘€ (if it works the way I'm hoping it will πŸ˜†)

22.07.2025 03:18 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Yeah the main reason for the dispatch is, what if you click edit on one user, then escape out and then click edit on a different user? The modal comp can't mount twice. You could potentially do that if you had inline modals but that adds to the DOM. I just have one edit-user modal comp for the page.

22.07.2025 03:16 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I'd love to know the answer to this too πŸ˜…

22.07.2025 03:12 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I then have loading inside the modal, which `wire:target` the edit method, to show the loading state and hide the modal contents.

22.07.2025 03:02 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Yep, that's how I do it. I have a button that has `wire:click="$dispatch('edit-user', {{$user->id}})"` and it is wrapped in a `flux:modal.trigger` component, which opens the modal.

My modal component has a listener for the edit-user event on my `edit($userId)` method.

22.07.2025 03:02 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

One component for the page and another for the modal 😁

22.07.2025 02:48 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Ahh! Yep, that'll do it. What do you use that for?

21.07.2025 01:33 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Actually those dates are off by a day in comparison to the date inside the element πŸ€”

21.07.2025 01:22 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Yeah Flux uses browser locale based date objects to get the individual dates. But it should only be rendering the day and not the rest of it.

21.07.2025 01:21 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Sadly not. If you can’t work it out, happy to jump on a call to see if we can get to the bottom of it.

21.07.2025 01:14 πŸ‘ 1 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0

Very strange! Just tested locally and I couldn’t get it to break πŸ˜… thought maybe it was an issue with date picker after flux scripts or something. But it doesn’t function at all then πŸ˜‚

21.07.2025 01:04 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Ok thanks. I’ll have a quick play and see if I can replicate it. Does seem odd styles wouldn’t be there initially but be fine after any interaction

21.07.2025 00:26 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Nope! I’ll test it out. Assuming it’s nothing fancy, just date picker inside a fly out modal?

20.07.2025 23:56 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Haha was just keeping them for a little while after I migrated to digital ocean. Probably should clean them up but yeah it’s not worth it πŸ˜‚

17.07.2025 08:18 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Yeah same, mines like $1 for some old RDS snapshots πŸ˜‚

17.07.2025 07:24 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0