brandonjbegle / nova-4-slack-channel-field
This Nova Package is a searchable select for storing your slack channel information in a database field.
Installs: 96
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: ^8.0
- jolicode/slack-php-api: ^4.5
- laravel/nova: ^4.0
README
This Nova Package is a searchable select for storing your slack channel information in a database field.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require brandonjbegle/nova-4-slack-channel-field
Now publish config file:
php artisan vendor:publish --provider="BrandonJBegle\SlackChannel\FieldServiceProvider"
Create a Slack App, install it to your workspace, and retrieve your bot token. Complete Instructions Here
Add the key and token to your .env
file
SLACK_OAUTH_TOKEN=############################
Usage
Add the field to your Nova Resource:
use BrandonJBegle\SlackChannel\SlackChannel; // .... SlackChannel::make('Slack Channel'), // Specify channel types https://api.slack.com/methods/conversations.list#arg_types SlackChannel::make('Slack Channel') ->types('public_channel,private_channel'),