Files
animethemes-server/app/Http/Resources/Wiki/Resource/ImageResource.php
T
paranarimasu 295a997354 Api allowed pivots (#570)
* refactor(api): prefer including pivot types to conditional pivot information

* style: fix StyleCI findings
2023-04-14 18:36:29 -05:00

33 lines
563 B
PHP

<?php
declare(strict_types=1);
namespace App\Http\Resources\Wiki\Resource;
use App\Http\Api\Schema\Schema;
use App\Http\Api\Schema\Wiki\ImageSchema;
use App\Http\Resources\BaseResource;
/**
* Class ImageResource.
*/
class ImageResource extends BaseResource
{
/**
* The "data" wrapper that should be applied.
*
* @var string|null
*/
public static $wrap = 'image';
/**
* Get the resource schema.
*
* @return Schema
*/
protected function schema(): Schema
{
return new ImageSchema();
}
}