Skip to content

Commit 292b1cc

Browse files
committed
Revert "add apiTransformers() to resource stub. update readme about this function"
This reverts commit 9488241.
1 parent 9488241 commit 292b1cc

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ use App\Filament\Resources\BlogResource\Api\Transformers\ExtraBlogColumnsTransfo
203203
class BlogResource extends Resource
204204
{
205205
/**
206-
* @return array<string, string>
206+
* @return array<string>
207207
*/
208208
public static function apiTransformers(): array
209209
{

stubs/ResourceApiService.stub

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@ class {{ apiServiceClass }} extends ApiService
1010
{
1111
protected static string | null $resource = {{ resourceClass }}::class;
1212

13-
/**
14-
* @return array<string, string>
15-
*/
16-
public static function apiTransformers(): array
17-
{
18-
return [];
19-
}
20-
2113
public static function handlers() : array
2214
{
2315
return [

0 commit comments

Comments
 (0)