https://github.com/0plus1/patchr-laravel
Laravel wrapper for patchr
https://github.com/0plus1/patchr-laravel
Last synced: over 1 year ago
JSON representation
Laravel wrapper for patchr
- Host: GitHub
- URL: https://github.com/0plus1/patchr-laravel
- Owner: 0plus1
- License: mit
- Created: 2017-03-15T05:54:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T04:12:00.000Z (about 9 years ago)
- Last Synced: 2025-02-02T11:29:22.382Z (over 1 year ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Patchr - Laravel/Lumen
###### MySQL version control [Patchr on github](https://github.com/0plus1/patchr).
## Install
**Composer**
```
composer require 0plus1/patchr-laravel
```
**Create folder**
Create a new folder named *patchr* in your storage folder.
**Laravel**
In *./config/app.php*
Add:
```php
Zeroplusone\Patchr\Laravel\LaravelServiceProvider::class,
```
To the 'providers' array.
Then run:
```
php artisan vendor:publish --provider="Zeroplusone\Patchr\Laravel\LaravelServiceProvider" --tag="config"
```
To publish the configuration file.
**Lumen**
First copy the configuration file:
```./vendor/0plus1/patchr-laravel/config/patchr.php``` to ```./config/patchr.php```
In *./bootstrap/app.php* add:
```php
$app->register( Zeroplusone\Patchr\Laravel\LumenServiceProvider::class);
```
To the 'Register Service Providers' section.
```php
$app->configure('patchr');
```
To the 'Create The Application' section.
####Publish config
**Laravel**
**Lumen**
```
php artisan vendor:publish --provider="Zeroplusone\Patchr\Laravel\LumenServiceProvider" --tag="config"
```
This will publish a *./config/patchr.php* file.
####Configure
Change configuration to suit your app needs ([Documentation](https://github.com/0plus1/patchr)).