承接 marshmallow/resource-progress 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marshmallow/resource-progress

最新稳定版本:1.0.0

Composer 安装命令:

composer require marshmallow/resource-progress

包简介

A Laravel Nova field.

README 文档

README

use HasMetadata;
use TrackResourceProgress;

#[ResourceProgressSuite(suite: 'progress', name: 'Progress')]
#[ResourceProgressSuite(suite: 'publish', name: 'Publish', fields: ['name', 'intro'])]
class Product extends ModelsProduct implements HasMedia, Sortable
{
    // Optional if you dont provide the fields in the attribute
    public function getProgressRequiredFields(): array
    {
        return ['name', 'intro', 'description', 'supplier_id', 'product_category_id'];
    }
}


public function setPublishActions(): array
{
    return [
        \Marshmallow\ResourceProgress\Actions\FieldFilled::class,
    ];
}
artisan make:resource-progress-action MissingTranslationsAction
a make:resource-progress-suite SeoSuite

Register your suites in the model (required action)

#[ResourceProgressSuite(suite: 'progress', name: 'Progress')]
#[ResourceProgressSuite(suite: 'publish', name: 'Publish')]
#[ResourceProgressSuite(suite: 'seo', name: 'SEO')]
class Product extends ModelsProduct implements HasMedia, Sortable

Register the field (required action)

ResourceProgress::make(__('Progress')),
// Selected resources
IndexResourceProgress::make(),

// All resources
IndexResourcesProgress::make(self::class)->standalone(),
``

统计信息

  • 总下载量: 365
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-28