Skip to content

Commit

Permalink
change names
Browse files Browse the repository at this point in the history
  • Loading branch information
laurencei committed Jan 31, 2018
1 parent f3e1895 commit 9229e95
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Illuminate\Http\Resources\DelegatesToResource;
use Illuminate\Http\Resources\ConditionallyLoadsAttributes;

class Resource implements ArrayAccess, JsonSerializable, Responsable, UrlRoutable
class JsonResource implements ArrayAccess, JsonSerializable, Responsable, UrlRoutable
{
use ConditionallyLoadsAttributes, DelegatesToResource;

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Resources/Json/ResourceCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Illuminate\Pagination\AbstractPaginator;
use Illuminate\Http\Resources\CollectsResources;

class ResourceCollection extends Resource implements IteratorAggregate
class ResourceCollection extends JsonResource implements IteratorAggregate
{
use CollectsResources;

Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/Http/Fixtures/AuthorResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Illuminate\Tests\Integration\Http\Fixtures;

use Illuminate\Http\Resources\Json\Resource;
use Illuminate\Http\Resources\Json\JsonResource;

class AuthorResource extends Resource
class AuthorResource extends JsonResource
{
public function toArray($request)
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/Http/Fixtures/PostResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Illuminate\Tests\Integration\Http\Fixtures;

use Illuminate\Http\Resources\Json\Resource;
use Illuminate\Http\Resources\Json\JsonResource;

class PostResource extends Resource
class PostResource extends JsonResource
{
public function toArray($request)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Illuminate\Tests\Integration\Http\Fixtures;

use Illuminate\Http\Resources\Json\Resource;
use Illuminate\Http\Resources\Json\JsonResource;

class PostResourceWithOptionalData extends Resource
class PostResourceWithOptionalData extends JsonResource
{
public function toArray($request)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Illuminate\Tests\Integration\Http\Fixtures;

use Illuminate\Http\Resources\Json\Resource;
use Illuminate\Http\Resources\Json\JsonResource;

class PostResourceWithOptionalMerging extends Resource
class PostResourceWithOptionalMerging extends JsonResource
{
public function toArray($request)
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/Http/Fixtures/ReallyEmptyPostResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Illuminate\Tests\Integration\Http\Fixtures;

use Illuminate\Http\Resources\Json\Resource;
use Illuminate\Http\Resources\Json\JsonResource;

class ReallyEmptyPostResource extends Resource
class ReallyEmptyPostResource extends JsonResource
{
//
}
4 changes: 2 additions & 2 deletions tests/Integration/Http/Fixtures/SerializablePostResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Illuminate\Tests\Integration\Http\Fixtures;

use Illuminate\Http\Resources\Json\Resource;
use Illuminate\Http\Resources\Json\JsonResource;

class SerializablePostResource extends Resource
class SerializablePostResource extends JsonResource
{
public function toArray($request)
{
Expand Down

0 comments on commit 9229e95

Please sign in to comment.