Naar de inhoud

Configuration

Publish the config to change the URL, middleware, disk, preview aspect ratios, and the back-link:

php artisan vendor:publish --tag=switchbot-frame-config
// config/switchbot.php
'routes' => [
    'prefix' => 'switchbot',
    'middleware' => ['web', 'auth:sanctum'], // add further authorization here
    'webhook' => ['prefix' => '', 'middleware' => ['api']],
],

'back_link' => ['label' => 'Back', 'url' => null], // shown only when url (or route) is set

'aspect' => [
    'now_showing' => 'portrait',   // portrait | landscape | square
    'dropzone' => 'portrait',
],
Een fout gevonden of een vraag? Maak een issue aan op GitHub
Detail Z · Contact

Meer weten? Neem contact op.

Vertel ons kort wat je zoekt. We denken graag met je mee, ook als je nog niet precies weet wat je nodig hebt.