Skip to content

Commit

Permalink
Merge pull request #969 from ahmed-aliraqi/patch-1
Browse files Browse the repository at this point in the history
Update JsonResource namespace
  • Loading branch information
nWidart authored Apr 22, 2020
2 parents 7460cb0 + e79fc18 commit 467a106
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Commands/stubs/resource.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace $NAMESPACE$;

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

class $CLASS$ extends Resource
class $CLASS$ extends JsonResource
{
/**
* Transform the resource into an array.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
namespace Modules\\Blog\\Transformers;
use Illuminate\\Http\\Resources\\Json\\Resource;
use Illuminate\\Http\\Resources\\Json\\JsonResource;
class PostsTransformer extends Resource
class PostsTransformer extends JsonResource
{
/**
* Transform the resource into an array.
Expand Down

0 comments on commit 467a106

Please sign in to comment.