storage of gcp for laravel 9

v1.2.2 2022-08-24 13:24 UTC

This package is auto-updated.

Last update: 2024-06-24 17:51:33 UTC


README

note

  • this package is helpful laravel 9 using gcp storage

edit your composer.json

"repositories": {
    "liou2021": {
        "type": "vcs", 
        "url": "https://github.com/LIOU2021/gcs"
    }
}

run this command in your laravel project

composer require liou2021/gcs

publish config

php artisan vendor:publish --provider="Liou2021\Gcs\GCSServiceProvider"

edit your config(config/gcs.php)

return[
        'bucket'=>'your bucket name',
        'key'=>'your gcp key'
];

common

return \GCS::allFiles();

return \GCS::Files('test/');

return \GCS::put($request->file, $path);

Ref