8000 Merge tag 'v1.0.0-beta.4' into develop · AxonDivisionDev/laravel-json-api@5832cdf · GitHub
[go: up one dir, main page]

Skip to content

Commit 5832cdf

Browse files
committed
Merge tag 'v1.0.0-beta.4' into develop
New validation implementation. Minimum PHP version is now 7.1 and Laravel 5.5.
2 parents 114dec4 + ea62935 commit 5832cdf

24 files changed

+306
-37
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
All notable changes to this project will be documented in this file. This project adheres to
33
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).
44

5-
## Unreleased
5+
## [1.0.0-beta.4] - 2018-10-11
66

77
### Added
88
- New validation implementation that uses Laravel validators throughout. See the

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ A demo application is available at [here](https://github.com/cloudcreativity/dem
2626

2727
| Laravel | This Package | EOL? |
2828
| --- | --- | --- |
29-
| 5.7.* | `1.0.0-beta.3` | - |
30-
| 5.6.* | `1.0.0-beta.3` | - |
31-
| 5.5.* | `1.0.0-beta.3` | - |
29+
| 5.7.* | `1.0.0-beta.4` | - |
30+
| 5.6.* | `1.0.0-beta.4` | - |
31+
| 5.5.* | `1.0.0-beta.4` | - |
3232
| 5.4.* | `1.0.0-beta.3` | EOL |
3333

3434
Make sure you consult the [Upgrade Guide](http://laravel-json-api.readthedocs.io/en/latest/upgrade/)

docs/installation.md

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,14 @@
11
# Installation
22

3-
## Laravel 5.5
4-
53
Install using [Composer](http://getcomposer.org):
64

75
``` bash
8-
$ composer require cloudcreativity/laravel-json-api:1.0.0-beta.3
6+
$ composer require cloudcreativity/laravel-json-api:1.0.0-beta.4
97
$ composer require --dev cloudcreativity/json-api-testing
108
```
119

1210
This package's service provider and facade will be automatically added using package discovery. You will
13-
need to follow the instructions below for updating your `ExceptionHandler`.
14-
15-
## Laravel 5.4
16-
17-
Install using [Composer](http://getcomposer.org):
18-
19-
``` bash
20-
$ composer require cloudcreativity/laravel-json-api:1.0.0-beta.3
21-
$ composer require --dev cloudcreativity/json-api-testing
22-
```
23-
24-
Add the package service provider to your `config/app.php` providers array.
25-
26-
``` php
27-
'providers' => [
28-
// ...existing providers
29-
'CloudCreativity\LaravelJsonApi\ServiceProvider'
30-
]
31-
```
32-
33-
If you would like to use the `JsonApi` facade, add the following to the list of aliases in the same file
34-
(`config/app.php`):
35-
36-
``` php
37-
'aliases' => [
38-
// ... existing aliases
39-
'JsonApi' => CloudCreativity\LaravelJsonApi\Facades\JsonApi::class,
40-
]
41-
```
11+
then need to update your Exception handler as follows...
4212

4313
## Exception Handling
4414

src/Document/ResourceObject.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?php
2+
/**
3+
* Copyright 2018 Cloud Creativity Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
217

318
namespace CloudCreativity\LaravelJsonApi\Document;
419

src/Http/Requests/CreateResource.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?php
2+
/**
3+
* Copyright 2018 Cloud Creativity Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
217

318
namespace CloudCreativity\LaravelJsonApi\Http\Requests;
419

src/Http/Requests/FetchResource.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?php
2+
/**
3+
* Copyright 2018 Cloud Creativity Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
217

318
namespace CloudCreativity\LaravelJsonApi\Http\Requests;
419

src/Http/Requests/FetchResources.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?php
2+
/**
3+
* Copyright 2018 Cloud Creativity Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
217

318
namespace CloudCreativity\LaravelJsonApi\Http\Requests;
419

src/Http/Requests/UpdateRelationship.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?php
2+
/**
3+
* Copyright 2018 Cloud Creativity Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
217

318
namespace CloudCreativity\LaravelJsonApi\Http\Requests;
419

src/Rules/AbstractAllowedRule.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?php
2+
/**
3+
* Copyright 2018 Cloud Creativity Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
217

318
namespace CloudCreativity\LaravelJsonApi\Rules;
419

src/Rules/AllowedFieldSets.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?php
2+
/**
3+
* Copyright 2018 Cloud Creativity Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
217

318
namespace CloudCreativity\LaravelJsonApi\Rules;
419

0 commit comments

Comments
 (0)
0