feat: Use laravel-data example instead of Resources
This commit is contained in:
12
app/Data/RoleData.php
Normal file
12
app/Data/RoleData.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Data;
|
||||
|
||||
use Spatie\LaravelData\Data;
|
||||
|
||||
class RoleData extends Data
|
||||
{
|
||||
public function __construct(
|
||||
public string $name,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user