zhanang19 / laravel-gitlab-storage
A Gitlab Storage driver Laravel
Installs: 45
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/zhanang19/laravel-gitlab-storage
Requires
- php: ^7.1
- illuminate/support: ^7.0
- royvoetman/flysystem-gitlab-storage: ^1.0
Requires (Dev)
This package is auto-updated.
Last update: 2022-06-02 06:04:27 UTC
README
A Gitlab Storage Driver for Laravel.
This package is a wrapper of Flysystem Gitlab storage as storage disk for Laravel.
Installation
Run command composer require zhanang19/laravel-gitlab-storage
to install this package
This package is tested only in Laravel 7
Configuration
Add new disk configuration in your filesystems.php
config.
# config/filesystems.php 'disks' => [ 'gitlab' => [ 'driver' => 'gitlab', 'project_id' => env('GITLAB_PROJECT_ID'), 'access_token' => env('GITLAB_ACCESS_TOKEN', ''), 'branch' => env('GITLAB_BRANCH', 'master'), 'base_url' => env('GITLAB_BASE_URL', 'https://gitlab.com'), 'debug' => (bool)env('GITLAB_DEBUG', env('APP_DEBUG', false)) ] ],