We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c443938 commit 10e8622Copy full SHA for 10e8622
src/Data/BaseData.php
@@ -2,12 +2,15 @@
2
3
namespace Cachet\Data;
4
5
+use Spatie\LaravelData\Attributes\MapName;
6
use Spatie\LaravelData\Data;
7
+use Spatie\LaravelData\Mappers\SnakeCaseMapper;
8
9
/**
10
* @template TKey of array-key
11
* @template TValue
12
*/
13
+#[MapName(SnakeCaseMapper::class)]
14
abstract class BaseData extends Data
15
{
16
workbench/config/data.php
@@ -132,8 +132,8 @@
132
* global strategy here, or override it on a specific data object.
133
134
'name_mapping_strategy' => [
135
- 'input' => \Spatie\LaravelData\Mappers\SnakeCaseMapper::class,
136
- 'output' => \Spatie\LaravelData\Mappers\SnakeCaseMapper::class,
+ 'input' => null,
+ 'output' => null,
137
],
138
139
0 commit comments