feat: Use laravel-data example instead of Resources

This commit is contained in:
2023-11-11 14:57:25 +01:00
parent eac670642a
commit 2c5934c4ed
3 changed files with 50 additions and 2 deletions

12
app/Data/RoleData.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
namespace App\Data;
use Spatie\LaravelData\Data;
class RoleData extends Data
{
public function __construct(
public string $name,
) {}
}