Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cgauge/laravel-bref-adapter
https://github.com/cgauge/laravel-bref-adapter
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cgauge/laravel-bref-adapter
- Owner: cgauge
- License: mit
- Created: 2020-06-10T08:46:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-22T13:06:40.000Z (over 1 year ago)
- Last Synced: 2024-04-23T22:09:54.366Z (8 months ago)
- Language: PHP
- Size: 38.1 KB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Bref Adapter 🔌
This library provides a [Bref Adapter](https://bref.sh) for Laravel
# Installation
```bash
composer require customergauge/bref
```# Configuration
We need to add `\CustomerGauge\Bref\Helpers\StorageDirectories::create($app);` to the `bootstrap/app.php` file.
This will ensure that the storage directories are created before the application is booted.The following environment variables will configure Laravel to use the appropriate folders:
```dotenv
APP_SERVICES_CACHE: /tmp/laravel-bref-adapter/storage/cache/services.php
APP_PACKAGES_CACHE: /tmp/laravel-bref-adapter/storage/cache/packages.php
APP_ROUTES_CACHE: /tmp/laravel-bref-adapter/storage/cache/routes.php
VIEW_COMPILED_PATH: /tmp/laravel-bref-adapter/storage/framework/views
```# Usage