brandonjbegle/nova-4-slack-channel-field

This Nova Package is a searchable select for storing your slack channel information in a database field.

v0.1.4 2022-11-13 21:31 UTC

This package is auto-updated.

Last update: 2024-04-14 00:54:40 UTC


README

This Nova Package is a searchable select for storing your slack channel information in a database field.

68747470733a2f2f62772d7075626c69632d696d616765732e73332d75732d656173742d322e616d617a6f6e6177732e636f6d2f6578616d706c652e706e67

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'),