Skip to content
This repository was archived by the owner on Jun 2, 2022. It is now read-only.

zhanang19/laravel-gitlab-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitlab Storage Driver for Laravel

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))
        ]
    ],

Reference

  1. Custom Filesystems - Laravel Docs

Packages

No packages published

Languages