laravel-arcanist/inertia-response-renderer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

laravel-arcanist/inertia-response-renderer

最新稳定版本:0.6.0

Composer 安装命令:

composer require laravel-arcanist/inertia-response-renderer

包简介

Inertia response renderer for Arcanist

README 文档

README

This package provides an Inertia.js response renderer for Arcanist.

The real docs are still being written, but here’s a really quick introduction.

Installation

Install the package through composer (you still need the main Arcanist package installed).

composer require laravel-arcanist/inertia-response-renderer

Inside config/arcanist.php, change the renderers.renderer key to Arcanist\InertiaResponseRenderer::class.

That’s it.

How it works

The reponse renderer will try and resolve step templates via the following convention:

resources/js/Pages/Wizards/{wizard-slug}/{step-slug}.vue

You can configure the Wizard path prefix by changing the renderers.inertia.component_base_path setting in the config.

View Data

Arcanist passes a step and wizard prop to all views. These can be accessed in the usual Inertia way.

this.$page.props.arcanist.wizard

this.$page.props.arcanist.step

Please refer to the main documentation for a more detailed explanation of these variables.

统计信息

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

GitHub 信息

  • Stars: 13
  • Watchers: 3
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-03