ghazniali95/react-with-laravel-blade 问题修复 & 功能扩展

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

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

ghazniali95/react-with-laravel-blade

最新稳定版本:v1.0.0

Composer 安装命令:

composer require ghazniali95/react-with-laravel-blade

包简介

React component laravel vite helper.

README 文档

README

Author: Ghazni Ali Contact: GitHub Profile

Overview

The ReactWithLaravelBlade package simplifies the process of creating React components directly within Laravel Blade templates. To use this package, ensure you have Laravel and Vite installed and configured in your project.

Usage

Setup Development

  1. Run the following command to start the development server:

    npm run dev
    
  2. After setting up Laravel with Vite and React, run the Laravel server with:

     php artisan serve
    

Installation

To install the package, run the following Composer command:

composer require ghazniali95/ReactWithLaravelBlade

Usage

Creating a React Component

Once the package is installed, you can use the following Artisan command to create a new React component:

php artisan create:reactComponent [ComponentName]

Passing Arguments to React Components

To create a React component that accepts arguments, use the following Artisan command:

php artisan create:reactComponent [ComponentName] --arg=arg1,arg2,arg3,...

This will generate a component that can receive arguments.

Building Components

For the build process, you need to add all the created components to the vite.config.js file in your project's root directory.

Future Improvements

We are actively working on improving this package to enhance your development experience. Your feedback and contributions are valuable to us! Contact

Author: Ghazni Ali
GitHub Profile: Ghazni Ali on GitHub

Feel free to contribute to the project or report any issues on the GitHub repository.

This README.md file provides clear and organized information on how to install and run the package.

统计信息

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

GitHub 信息

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

其他信息

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