mardi 21 mai 2019

Upload / Store files from one laravel app to another laravel app

I have a situation where i need to build Rest apis for the iOS and other apps using Laravel passport. And i also have a web app. this web app and api app located on different servers. They are sharing same database and hence i need to share storage as well. So i would like to upload files through api to the web apps storage folder.

I don't want to use any external storage service.

do i need to create some custom drive for this? something like -

     's3' => [
        'driver' => 's3',
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION'),
        'bucket' => env('AWS_BUCKET'),
        'url' => env('AWS_URL'),
    ],

How do i accomplish this? Need guidance.

Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire