承接 loicdelanoe/statamic-inertia-starter 相关项目开发

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

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

loicdelanoe/statamic-inertia-starter

最新稳定版本:v1.0.2

Composer 安装命令:

composer create-project loicdelanoe/statamic-inertia-starter

包简介

The skeleton application for the Laravel framework.

README 文档

README

A starter template for quickly building Statamic projects with Inertia.js and Vue 3.

⚠️ Warning: This project is currently in development. APIs and features may change without notice.

Introduction

This starter kit provides a basic setup for building Statamic projects with Inertia.js and Vue 3. It relies on the statamic-inertia-adapter package to provide a seamless integration between Statamic and Inertia.js.

If you want to use another front-end framework such as React or Svelte, you may visit the official Inertia.js documentation and the Statamic documentation for more information. It is planned to support other front-end frameworks in the future.

Installation

You can install this starter kit in two ways:

Using Laravel

Run the following command to create a new Laravel project with the starter kit:

laravel new --using loicdelanoe/statamic-inertia-starter

Using Composer

Alternatively, you can create a new project via Composer:

composer create-project loicdelanoe/statamic-inertia-starter

Usage

Forms

You can use Statamic’s native forms directly. A Form component is included in the starter kit for this purpose.

Example:

<Form :form="page.form" class="flex flex-col gap-4" v-slot="{ processing, errors, formData, success }">
    <span v-if="success" class="font-semibold text-green-500">Form submitted successfully!</span>

    <div class="flex flex-col" v-for="field in page.form.fields" :key="field.handle">
        <label class="pb-1" :for="field.handle">{{ field.display }}</label>
        <input
            :id="field.handle"
            :type="field.type"
            :name="field.handle"
            class="border"
            v-model="formData[field.handle]"
            :disabled="processing"
        />
        <span v-if="errors[field.handle]" class="mt-1 text-sm font-semibold text-red-500">{{ errors[field.handle] }}</span>
    </div>

    <button type="submit" class="bg-white px-2 py-1.5 text-black" :disabled="processing">Submit</button>
</Form>

Props

  • form
    The Statamic form object (e.g. page.form).

Slot properties

The Form component exposes the following variables through its slot:

  • processing
    booleantrue while the form submission is being processed.

  • errors
    object — validation errors returned by the form submission, indexed by field handle.

  • formData
    object — a reactive object containing the form field values.

  • success
    booleantrue when the form has been successfully submitted.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固