update deploy
This commit is contained in:
26
app/Http/Resources/PageBlockResource.php
Normal file
26
app/Http/Resources/PageBlockResource.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use App\Models\PageBlock;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
/**
|
||||
* @mixin PageBlock
|
||||
*/
|
||||
class PageBlockResource extends JsonResource
|
||||
{
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function toArray(Request $request): array
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'type' => $this->type,
|
||||
'content' => $this->content,
|
||||
'order_index' => $this->order_index,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user