tareq1988/laravel-inertia-crud 问题修复 & 功能扩展

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

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

tareq1988/laravel-inertia-crud

Composer 安装命令:

composer require tareq1988/laravel-inertia-crud

包简介

A CRUD generator for inertia and react

README 文档

README

This is a Laravel package that provides a simple and efficient way to create CRUD (Create, Read, Update, Delete) operations using Inertia.js, React and TypeScript.

Features

  • Seamless integration with Laravel and Inertia.js (React)
  • Pre-built CRUD operations
  • Easy to customize and extend

Requirements

  • PHP >= 8.1
  • Laravel >= 10.0
  • Inertia.js >= 2.0
  • @wedevs/tail-react package
  • @heroicons/react package

Installation

  1. Install the package via Composer:

    composer require tareq1988/laravel-inertia-crud
  2. Install @wedevs/tail-react and @heroicons/react package:

    yarn add @wedevs/tail-react @heroicons/react
    // or 
    npm i @wedevs/tail-react @heroicons/react

See the usage instruction of @wedevs/tail-react package.

Usage

  1. Generate a new CRUD resource:

    php artisan inertia:make-resource Modelname

It'll create the controller, model and add a resource route in your web.php route. Please manually import the controller there.

  1. Generate React page CRUD components:

    php artisan inertia:make-component Comment

You've to pass the model name here, it'll create the required components.

Contributing

Contributions are welcome!

License

This package is open-sourced software licensed under the MIT license.

Credits

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-01-27