diff --git a/src/Illuminate/Foundation/Console/stubs/resource.stub b/src/Illuminate/Foundation/Console/stubs/resource.stub index ac8d2058d25f..99703653d3e3 100644 --- a/src/Illuminate/Foundation/Console/stubs/resource.stub +++ b/src/Illuminate/Foundation/Console/stubs/resource.stub @@ -2,9 +2,9 @@ namespace DummyNamespace; -use Illuminate\Http\Resources\Json\Resource; +use Illuminate\Http\Resources\Json\JsonResource; -class DummyClass extends Resource +class DummyClass extends JsonResource { /** * Transform the resource into an array. diff --git a/src/Illuminate/Http/Resources/Json/Resource.php b/src/Illuminate/Http/Resources/Json/Resource.php new file mode 100644 index 000000000000..49f674415713 --- /dev/null +++ b/src/Illuminate/Http/Resources/Json/Resource.php @@ -0,0 +1,8 @@ +