Statamic Pixxio Flysystem is a Statamic addon that does something pretty neat.
- Provide a Flysystem Adapter for Pixxio
- Exclude specific directories from the asset-container.
Pixxio Flysystem is a commercial addon - you must purchase a license via the Statamic Marketplace to use it in a production environment.
composer require visuellverstehen/statamic-pixxio-flysystem'disks' => [
'pixxio' => [
'driver' => 'pixxio',
'access_token' => env('PIXXIO_ACCESS_TOKEN'),
'url' => env('PIXXIO_URL'),
'endpoint' => env('PIXXIO_ENDPOINT'),
],
],php artisan migrateAdd alt, copyright and description fields to the asset-container blueprint.
php artisan pixxio:syncIf you wish to only import newly added files you can use the --new option.
php artisan pixxio:sync --newIn order to keep the database updated schedule a task that runs synchronization script regularly.
php artisan vendor:publish --provider="VV\PixxioFlysystem\ServiceProvider" --tag="flysystem-pixxio-config"Exclude certain directories in config/flysystem-pixxio.php
'exclude' => [
'directories' => [
'/home',
],
],- Simply create an Asset-Container with pixxio as your driver.