GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bailang1208/laravel-azure-storage: Microsoft Azure Blob Storage integration for Laravel's Storage API

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 
phpunit.xml
phpunit.xml
 
 

Repository files navigation

laravel-azure-storage

Microsoft Azure Blob Storage integration for Laravel's Storage API

Requirements

  • Laravel 5.6

Installation

Install the package using composer:

composer require feilongcui/laravel-azure-storage

Then add this to the disks section of config/filesystems.php:

    'azure' => [
        'driver'    => 'azure',
        'name'      => env('AZURE_ACCOUNT_NAME'),
        'key'       => env('AZURE_ACCOUNT_KEY'),
        'container' => env('AZURE_CONTAINER_NAME'),
    ],

Finally, add the fields AZURE_ACCOUNT_NAME, AZURE_ACCOUNT_KEY and AZURE_CONTAINER_NAME to your .env file with the appropriate credentials. Then you can set the azure driver as either your default or cloud driver and use it to fetch and retrieve files as usual.

Constructing a URL

This driver doesn't support the Storage::url($path) method, and adding support as a third-party package doesn't appear to be practical. However, you can construct a URL to retrieve the asset as follows:

$url = 'https://' . config('filesystems.disks.azure.name'). '.blob.core.windows.net/' . config('filesystems.disks.azure.container') . '/' . $filename;

You may want to create a helper function for this.

About

Microsoft Azure Blob Storage integration for Laravel's Storage API

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.