How to use the AWS SDK for Laravel with Stook?
To use the Laravel SDK, follow the steps below.
Install the AWS SDK for Laravel.
Register package to your application
Configure AWS profiles for the Stook account using the Stook keys.
Installation
You can use the composer to install the AWS SDK for your Laravel application
composer require aws/aws-sdk-php-laravel
Package Registration
After installation, you must register the package usage for your application via the config/app.php
Stook Configuration
Run vendor publish command on your terminal. This command will create config/aws.php file. You can use this file to configure your stook account with your application
php artisan vendor:publish —provider="Aws\Laravel\AwsServiceProvider"
After publish, edit the config/aws.php.
You must define your ENV variables via the .env file.
Last updated