skip to Main Content

Laravel with s3 storage

I have installed the package with composer require league/flysystem-aws-s3-v3 "^3.0" --with-all-dependencies to my laravel and config the .env file. But I am unable to upload file to s3: $filename = "Picture3.png"; $file = Storage::disk("public")->get($filename); $status = Storage::disk("s3")->put("post_thumbnails/".$filename, $file); dd($status); When…

VIEW QUESTION

Laravel – Access nested PHP object response from email API

I want to access the 'messageid' and 'errorcode' from the object response returned from Postmark email API. How do I access these two nested data points. I tried $request->_container['errorcode'] and returns NULL object(PostmarkModelsDynamicResponseModel)#329 (2) { ["_container":"PostmarkModelsCaseInsensitiveArray":private]=> array(5) { ["errorcode"]=> int(0)…

VIEW QUESTION
Back To Top
Search