FoPost LogoFoPost Docs
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

VariableDescriptionDefault
OWLSTACK_API_KEYYour API key
OWLSTACK_QUEUE_CONNECTIONQueue connection namedefault
OWLSTACK_QUEUEQueue namedefault
OWLSTACK_LOG_CHANNELLog channelstack

On this page