2.0.0
This major release is a significant change in the Laravel integration with Bref.
Note:
You can read more about this is the Bref 2.0 release blog post
Indeed, the Laravel bridge v1.x was lagging behind and was limited in some features. The community (CacheWerk, Till Krüss, and George Boot) maintained a better alternative at cachewerk/bref-laravel-bridge.
For Bref 2.0, the contributors joined the Bref organization, and the CacheWerk bridge was merged into this repository to create v2.0 of this bridge (#94)!
What's new
- Bref 2.0 is required
- Laravel Octane support!
- Automatic config caching (if not already cached) on Lambda cold start.
- Maintenance mode.
- Storage directory moved entirely to
/tmp
. - AWS credentials automatically set up for S3 disks, SQS queues, and DynamoDB caches.
- Remove the need for setting the AWS account ID (#95)
- Automatically sets
app.mix_url
fromapp.asset_url
- Automatically adds the
X-Request-ID
header to the log context
Breaking Changes
- Logs are now written in plain text by default instead of JSON. To enable JSON logs, set
channels.stderr.formatter
toMonolog\Formatter\JsonFormatter::class
inconfig/logging.php
. - The automatic population of environment variables via
APP_SSM_PREFIX
andAPP_SSM_PARAMETERS
has been removed. The native Bref 2.0 feature to load SSM parameters into environment variables can be used instead (#36) - If you use Octane, remove the
bref/runtime.php
file, remove theAPP_RUNTIME
environment variable (inserverless.yml
) and set your Octane function handler to:handler: Bref\LaravelBridge\Http\OctaneHandler
. - If you use Laravel Queues, remove the
bref/runtime.php
file, remove theAPP_RUNTIME
environment variable (inserverless.yml
) and set your Octane function handler to:handler: Bref\LaravelBridge\Queue\QueueHandler
.
Full Changelog: 1.2.3...2.0.0