Files
animethemes-server/app/Http/Resources/Wiki/Resource/ArtistResource.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
568 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\ArtistSchema;
use App\Http\Resources\BaseResource;
/**
* Class ArtistResource.
*/
class ArtistResource extends BaseResource
{
/**
* The "data" wrapper that should be applied.
*
* @var string|null
*/
public static $wrap = 'artist';
/**
* Get the resource schema.
*
* @return Schema
*/
protected function schema(): Schema
{
return new ArtistSchema();
}
}