Laravel eCommerce Amazon S3 Extension (https://store.webkul.com/laravel-ecommerce-amazon-s3-extension.html#) provides the users to store the static files and media content to be upload on the Amazon S3 bucket and get them retrieved directly from the S3 bucket. We’ve also included the functionality to set an expiration header.
Amazon S3 (Simple Storage Service) is a cloud storage service offered by AWS (Amazon Web Services). Using the module, the store admin can upload downloadable products, media files, product content, images of all Laravel product types from their local disk to the Amazon S3 server.
Unzip the respective extension zip and then merge “packages” folders into the project root directory.
Go to the config/app.php file and add the following line under ‘providers’
Go to the composer.json file and add the following line under ‘psr-4’
To complete the setup, run the commands mentioned below:
composer require league/flysystem-aws-s3-v3:~1.0.0
php artisan config:cache
php artisan route:cache
That’s it, now just execute the project on your specified domain.
(i) To start with, create a new AWS account by using Sign-up.
(ii) And then log in to your AWS account by Sign-in.
(iii) After your account has been successfully created, select the S3 among the available AWS services or you can search for an S3 service in the search box.
(iv) This will take you to a page where you can view your created buckets or create a new bucket. To create a new bucket, choose to create a bucket from the drop-down menu.
(v) After pressing the Create bucket button, you’ll be taken to the Create bucket tab, where you’ll need to fill in all of the necessary information to create a new bucket. Then, at the bottom, press Create bucket.
Note:- Make sure to uncheck the “Block all public access”.
(vi) Here you can upload the files and create a folder to save the data. Also, you can view the saved data.
(vii) Click IAM under Security, Identity & Compliance to create an access key ID and a secret access key.
(viii) Click Users in the IAM dashboard to view and delete existing users, as well as add a new one.
The admin can customize the module settings after installing the extension by going to Configure > AWS Integration as seen below:
Go to Dashboard after clicking the save button in the right top corner.
Click the AWS integration button in the left bottom corner. Now, click the Synchronize button and wait a few seconds to see whether the synchronization was successful.
Finally, after successful synchronization, you will receive the following message.
The content is now served from the S3 bucket, as you can see.
So, this is all for the Amazon S3 extension module of Bagisto.
Thank you for reading this document,
Keep in touch!!
Be the first to comment.
Subscribe to our newsletter for exclusive growth strategies, special offer, latest news and tutorials.