承接 zareismail/nova-wizard 相关项目开发

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

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

zareismail/nova-wizard

最新稳定版本:v0.1.1

Composer 安装命令:

composer require zareismail/nova-wizard

包简介

A Laravel Nova tool.

README 文档

README

A wizard form for the Laravel Nova

Table of Contents

Introduction

This package gives you the ability to creating or updating a resource step by step and validating and storing resources on each step.

Installation

To get started with nova-wizard run the below command:

    composer require zareismail/nova-wizard

Resource Configurations

To use, your resource class should implement the Wizard interface. Then for creating each step use the Step class like the following:

    use Zareismail\NovaWizard\Contracts\Wizard; 
    use Zareismail\NovaWizard\Step;


    

    class Supply extends Resource implements Wizard
    { 
        return [  
            (new Step(__('Step One'), [      

                // some fields


            ])->withToolbar()


            new Step('Step Two', [
            ]),

            new Step(__('Step Three'), function() {
                return [
                ];
            }),
        ];
    }

Now; your source automatically displays wizard form to you.

Storing

By default; each step, except the last, will store in the session. if you need to store data into the database after a specific step you should call the Checkpoint method on that step. now, checkpoint step and all steps after it will be store in the DB.

Ignore Wizard On Update

For ignoring wizard-form on the update page, your resource should implement the Zareismail\NovaWizard\Contracts\IgnoreUpdateWizard.

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 2
  • Forks: 7
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-27