[ 'publish' => true, 'prefix' => 'attachments', 'middleware' => 'web', 'pattern' => '/{id}/{name}', 'shared_pattern' => '/shared/{token}', 'dropzone' => [ 'upload_pattern' => '/dropzone', 'delete_pattern' => '/dropzone/{id}', ] ], /* |-------------------------------------------------------------------------- | Uuid |-------------------------------------------------------------------------- | | Attachment model uses an UUID column. You can define your own UUID | generator here : a global function name or a static class method in the form : | App\Namespace\ClassName@method | */ 'uuid_provider' => 'uuid_v4_base36', /* |-------------------------------------------------------------------------- | Behaviors |-------------------------------------------------------------------------- | | Configurable behaviors : | - Concrete files can be delete when the database entry is deleted | - Dropzone delete can check for CSRF token match (set on upload) | */ 'behaviors' => [ 'cascade_delete' => env('ATTACHMENTS_CASCADE_DELETE', false), 'dropzone_check_csrf' => env('ATTACHMENTS_DROPZONE_CHECK_CSRF', true), ], /* |-------------------------------------------------------------------------- | Declare the attachement model attributes |-------------------------------------------------------------------------- | | This allow to extend the attachment model with new columns | */ 'attributes' => ['title', 'description', 'key', 'disk', 'group','company_id'], /* |-------------------------------------------------------------------------- | Attachment Storage Directory |-------------------------------------------------------------------------- | | Defines the directory prefix where new attachment files are stored | */ 'storage_directory' => [ 'prefix' => rtrim(env('ATTACHMENTS_STORAGE_DIRECTORY_PREFIX', 'attachments'), '/'), ], ];