I admit not having used hotwire in any capacity, as such, I'm unable to draw from first hand experience to know what structures will facilitate its use in php or suphle. However, this library offers guidelines on what is possible. From what I saw there, he's got:
a middleware for modifying validation failure behaviour. In suphle, the validation exception should be converted to an interface. Regular and hotwire specific exceptions should have their own handlers
helpers for getting dom ids from model fqcn + id. These should all be classes used on the transphporm stylesheet layer
helpers for generating turbo streams. He's using the laravel way of function overloading, so I can't really wrap my head around why they were stacked in the examples, why some are given blade partials, how the append/prepend modes work (are the hotwire tags created on the fly or are they replaced by some placeholder at some master blade/hotwire file?). If this feature will be part of a potential hotwire component, I'm guessing it's going to be a renderer, in the same way reload relies on the markup renderer
I admit not having used hotwire in any capacity, as such, I'm unable to draw from first hand experience to know what structures will facilitate its use in php or suphle. However, this library offers guidelines on what is possible. From what I saw there, he's got:
Additional resources