Laravel
Laravel Configuration
Configure the FoPost Laravel package.
Laravel Configuration
After publishing the config file, you'll have config/owlstack.php with these options:
return [
/*
|--------------------------------------------------------------------------
| API Key
|--------------------------------------------------------------------------
| Your OwlStack API key. Get one at https://app.owlstack.app
*/
'api_key' => env('OWLSTACK_API_KEY'),
/*
|--------------------------------------------------------------------------
| Default Platforms
|--------------------------------------------------------------------------
| Platforms to publish to when none are specified.
*/
'default_platforms' => [
// Platform::Twitter,
// Platform::LinkedIn,
],
/*
|--------------------------------------------------------------------------
| Queue
|--------------------------------------------------------------------------
| Whether to dispatch publishing jobs to the queue.
*/
'queue' => [
'enabled' => false,
'connection' => env('OWLSTACK_QUEUE_CONNECTION', 'default'),
'queue' => env('OWLSTACK_QUEUE', 'default'),
],
/*
|--------------------------------------------------------------------------
| Events
|--------------------------------------------------------------------------
| Whether to dispatch Laravel events for publishing results.
*/
'events' => [
'enabled' => true,
],
/*
|--------------------------------------------------------------------------
| Logging
|--------------------------------------------------------------------------
| Log channel for OwlStack operations.
*/
'logging' => [
'channel' => env('OWLSTACK_LOG_CHANNEL', 'stack'),
],
];Environment variables
| Variable | Description | Default |
|---|---|---|
OWLSTACK_API_KEY | Your API key | — |
OWLSTACK_QUEUE_CONNECTION | Queue connection name | default |
OWLSTACK_QUEUE | Queue name | default |
OWLSTACK_LOG_CHANNEL | Log channel | stack |