diff --git a/src/stubs/Controller.stub b/src/stubs/Controller.stub index 752bcec..c252e7a 100644 --- a/src/stubs/Controller.stub +++ b/src/stubs/Controller.stub @@ -50,8 +50,8 @@ class {{modelName}}Controller extends Controller /** * Update the specified resource in storage. * - * @param \App\Http\Requests\{{modelName}}Request $request - * @param \App\Models\{{modelName}} ${{modelNameSingularLowerCase}} + * @param {{modelName}}Request $request + * @param {{modelName}} ${{modelNameSingularLowerCase}} * @return {{modelName}}Resource */ public function update({{modelName}}Request $request, {{modelName}} ${{modelNameSingularLowerCase}}) @@ -64,7 +64,7 @@ class {{modelName}}Controller extends Controller /** * Remove the specified resource from storage. * - * @param \App\Models\{{modelName}} ${{modelNameSingularLowerCase}} + * @param {{modelName}} ${{modelNameSingularLowerCase}} * @return JsonResponse */ public function destroy({{modelName}} ${{modelNameSingularLowerCase}}) diff --git a/src/stubs/Test.stub b/src/stubs/Test.stub index 7e3bc41..4aa672a 100644 --- a/src/stubs/Test.stub +++ b/src/stubs/Test.stub @@ -8,7 +8,7 @@ use App\Model\{{modelName}}; class {{modelName}}Test extends TestCase { - /** @var \App\Models\{{modelName}} */ + /** @var {{modelName}} */ protected ${{modelNameSingularLowerCase}}; /** @@ -20,7 +20,7 @@ class {{modelName}}Test extends TestCase { parent::setUp(); - $this->{{modelNameSingularLowerCase}} = \App\Models\{{modelName}}::factory()->make(); + $this->{{modelNameSingularLowerCase}} = {{modelName}}::factory()->make(); } /** @@ -77,7 +77,7 @@ class {{modelName}}Test extends TestCase */ public function testDestroy() : void { - $id = \App\Models\{{modelName}}::all()->last()->id; + $id = {{modelName}}::all()->last()->id; $this->deleteJson('/api/{{modelNameSingularLowerCase}}/'.$id) ->assertSuccessful();