Looking to hire Laravel developers? Try LaraJobs

laravel-gitlab-storage maintained by zhanang19

Description
A Gitlab Storage driver Laravel
Author
Last update
2020/05/05 08:03 (dev-master)
License
Downloads
45

Comments
comments powered by Disqus

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