Skip to content

Commit 9d6ff9b

Browse files
committed
Prepare to release 2.1
1 parent 028acf8 commit 9d6ff9b

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Laravel 5 Repositories is used to abstract the data layer, making our applicatio
66
[![Analytics](https://ga-beacon.appspot.com/UA-61050740-1/l5-repository/readme)](https://packagist.org/packages/prettus/l5-repository)
77

88
#### [See version 1.0.*](https://github.com/andersao/l5-repository/tree/1.0.4)
9+
#### [See version 2.0.*](https://github.com/andersao/l5-repository/tree/2.0.14)
910
#### [Migrate to 2.0](migration-to-2.0.md)
11+
#### [Migrate to 2.1](migration-to-2.1.md)
1012

1113
You want to know a little more about the Repository pattern? [Read this great article](http://bit.ly/1IdmRNS).
1214

@@ -691,9 +693,11 @@ The cacheable methods are : all, paginate, find, findByField, findWhere, getByCr
691693

692694
### Validators
693695

696+
Requires [prettus/laravel-validator](https://github.com/prettus/laravel-validator). `composer require prettus/laravel-validator`
697+
694698
Easy validation with `prettus/laravel-validator`
695699

696-
[For more details click here](https://github.com/andersao/laravel-validator)
700+
[For more details click here](https://github.com/prettus/laravel-validator)
697701

698702
#### Using a Validator Class
699703

@@ -812,6 +816,8 @@ Presenters function as a wrapper and renderer for objects.
812816

813817
#### Fractal Presenter
814818

819+
Requires [Fractal](http://fractal.thephpleague.com/). `composer require league/fractal`
820+
815821
There are two ways to implement the Presenter, the first is creating a TransformerAbstract and set it using your Presenter class as described in the Create a Transformer Class.
816822

817823
The second way is to make your model implement the Transformable interface, and use the default Prenseter ModelFractarPresenter, this will have the same effect.

migration-to-2.1.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Laravel 5 Repositories
2+
3+
[![Analytics](https://ga-beacon.appspot.com/UA-61050740-1/l5-repository/migration-to-2.1)](https://packagist.org/packages/prettus/l5-repository)
4+
5+
Some changes between version 2.0 and 2.1
6+
7+
## Migrate from version 2.0 to 2.1
8+
9+
### Lumen Support
10+
11+
To use this package with Lumen , register the following service provider
12+
13+
```php
14+
$app->register(Prettus\Repository\Providers\LumenRepositoryServiceProvider::class);
15+
```
16+
17+
### Composer requirements
18+
19+
In version 2.0 some dependencies that could sometimes not be used in your project were always being downloaded regardless of whether they are used. In version 2.1 this package are as suggestions that will only be required if you want some features
20+
21+
22+
#### [Validators](https://github.com/prettus/l5-repository#validators)
23+
24+
If you want to use validations directly to your repository, as is disbelieved in Section [Validators](https://github.com/prettus/l5-repository#validators) , you need to use the library `prettus/laravel-validator`.
25+
26+
`composer require prettus/laravel-validator`
27+
28+
#### [Presenters](https://github.com/prettus/l5-repository#presenters)
29+
30+
If you want to use presenters in your repository, you need to use the library [`league/fractal`](http://fractal.thephpleague.com/).
31+
32+
`composer require league/fractal`

0 commit comments

Comments
 (0)