Skip to content

0.3.0

Compare
Choose a tag to compare
@tonysm tonysm released this 10 Feb 03:17
· 354 commits to main since this release

Changed

  • Breaking Change: The Tonysm\TurboLaravel\TurboFacade was renamed to Tonysm\TurboLaravel\Facades\Turbo
  • The LaravelBroadcaster was moved to the Broadcasters folder and an interface was extracted. I was thinking of adding a fake broadcaster, but didn't quite work
  • Response macros are now bound to the Response facade instead of the ResponseFactory as the documentation states
  • [internal] Changes the test routes registration (using Orchestra TestBench

Added

  • Adds a turbo_channel(Model $model) function that generates the broadcasting channel for a specific model using the package conventions (optional)
  • Adds a @channel blade directive to be used on views to generate the broadcasting channel name for a given model (optional)
  • Adds a turbo_channel_auth(string $className, string $wildcard) helper function to be used to generate a channel name for a given model to be used in the routes/channels.php file so uses don't have to think about the convention (optional)