PHP code example of zhanang19 / laravel-gitlab-storage

1. Go to this page and download the library: Download zhanang19/laravel-gitlab-storage library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zhanang19 / laravel-gitlab-storage example snippets



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