Added /api/settings to retrieve all VA settings #120
This commit is contained in:
21
app/Http/Resources/Setting.php
Normal file
21
app/Http/Resources/Setting.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Resources\Json\Resource;
|
||||
|
||||
class Setting extends Resource
|
||||
{
|
||||
public function toArray($request)
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'type' => $this->type,
|
||||
'name' => $this->name,
|
||||
'value' => $this->value,
|
||||
'group' => $this->group,
|
||||
'order' => $this->order,
|
||||
'description' => $this->description,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user