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