mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-28 01:34:43 +02:00
* feat: initial commit for feature management * style: fix StyleCI findings * fix(api): prohibit features of nonnull scope from API & fix(admin): wrong translate key * style: fix Static Analysis error
33 lines
575 B
PHP
33 lines
575 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Resources\Admin\Resource;
|
|
|
|
use App\Http\Api\Schema\Admin\FeatureSchema;
|
|
use App\Http\Api\Schema\Schema;
|
|
use App\Http\Resources\BaseResource;
|
|
|
|
/**
|
|
* Class FeatureResource.
|
|
*/
|
|
class FeatureResource extends BaseResource
|
|
{
|
|
/**
|
|
* The "data" wrapper that should be applied.
|
|
*
|
|
* @var string|null
|
|
*/
|
|
public static $wrap = 'feature';
|
|
|
|
/**
|
|
* Get the resource schema.
|
|
*
|
|
* @return Schema
|
|
*/
|
|
protected function schema(): Schema
|
|
{
|
|
return new FeatureSchema();
|
|
}
|
|
}
|