Download the PHP package juliomotol/laravel-channel-attributes without Composer
On this page you can find all versions of the php package juliomotol/laravel-channel-attributes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download juliomotol/laravel-channel-attributes
More information about juliomotol/laravel-channel-attributes
Files in juliomotol/laravel-channel-attributes
Package laravel-channel-attributes
Short Description This is my package laravel-channel-attributes
License MIT
Homepage https://github.com/juliomotol/laravel-channel-attributes
Informations about the package laravel-channel-attributes
Laravel Channel Attributes
Automatically register channel routes using annotations/attributes!
This package is inspired by spatie/laravel-route-attributes
.
Already using
spatie/laravel-route-attributes
? Congrats, time to ditch that./routes
directory! (Assuming you're not using theconsole.php
)
This will be registered like:
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
To add a channel to be registered automatically, simply add the JulioMotol\ChannelAttributes\Attributes\Channel
to a channel class
Code | Will be interpreted as: |
You can add options to channel by doing:
Code | Will be interpreted as: |
You can create a channel for a model by doing:
Code | Will be interpreted as: |
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Julio Motol
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-channel-attributes with dependencies
spatie/laravel-package-tools Version ^1.13.0
illuminate/contracts Version ^9.0
illuminate/broadcasting Version ^9.0
symfony/finder Version ^6.1