Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cgauge/laravel-bref-adapter


https://github.com/cgauge/laravel-bref-adapter

Last synced: 9 days ago
JSON representation

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