Files
animethemes-server/app/Http/Resources/Admin/Resource/FeatureResource.php
T
paranarimasuandGitHub 088ea287c5 feat: initial migration to pennant features for feature flags and global site config [incremental] (#573)
* 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
2023-04-23 18:54:34 -05:00

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();
}
}