I switched my storage from local to s3 (bucket aws) and fill in my .env file this variables:
FILESYSTEM_DRIVER=s3
AWS_ACCESS_KEY_ID="<my-key>"
AWS_SECRET_ACCESS_KEY="<my-secret>"
AWS_DEFAULT_REGION="<a-region>"
AWS_BUCKET="<a-bucket>"
AWS_URL=
AWS_ENDPOINT=
Now, i call this function and it don't work, in local storage work:
Storage::disk('s3')->exists($this->file_name);
Any idea?
resolved, only comment this .env variables:
AWS_ACCESS_KEY_ID="<my-key>"
AWS_SECRET_ACCESS_KEY="<my-secret>"
AWS_DEFAULT_REGION="<a-region>"
AWS_BUCKET="<a-bucket>"
#AWS_URL=
#AWS_ENDPOINT=