Skip to content

Commit 175e2e8

Browse files
committed
[Feature] Make JSON:API controller extend Laravel base controller
Closes #181
1 parent 608e005 commit 175e2e8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Diff for: CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
All notable changes to this project will be documented in this file. This project adheres to
44
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).
55

6+
## Unreleased
7+
8+
### Added
9+
10+
- [#181](https://github.com/laravel-json-api/laravel/issues/181) The `JsonApiController` now extends the base Laravel
11+
controller.
12+
613
## [2.1.2] - 2022-04-04
714

815
### Fixed

Diff for: src/Http/Controllers/JsonApiController.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
2323
use Illuminate\Foundation\Bus\DispatchesJobs;
2424
use Illuminate\Foundation\Validation\ValidatesRequests;
25+
use Illuminate\Routing\Controller;
2526

26-
class JsonApiController
27+
class JsonApiController extends Controller
2728
{
28-
2929
/**
3030
* JSON:API Actions
3131
*/
@@ -46,5 +46,4 @@ class JsonApiController
4646
use AuthorizesRequests;
4747
use DispatchesJobs;
4848
use ValidatesRequests;
49-
5049
}

0 commit comments

Comments
 (0)