定制 jennairaderafaella/inlite 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jennairaderafaella/inlite

最新稳定版本:1.1.1

Composer 安装命令:

composer require jennairaderafaella/inlite

包简介

this modules i'm made for Jennaira De Rafaella

README 文档

README

jennairaderafaella/inlite is a Laravel package designed to simplify maintenance with a lightweight version. It can be combined with other JavaScript frameworks, including Livewire. Additionally, this module can automatically initialize routes based on your preferences without interfering with other route functions. This package follows the Laravel MVC pattern and also supports the repository and/or service pattern methods. It is fully compatible with Laravel 11.

Install

To install using Composer, run the following command:

composer require jennairaderafaella/inlite

Currently, Composer installation is still being prepared.

Configuration

For Laravel 11 and later:

To use the package, you can manually register it. Locate the bootstrap/provider.php file and add the following lines:

    return [
        App\Providers\AppServiceProvider::class,
        \Jennairaderafaella\Inlite\InliteServiceProvider::class
    ];

For Laravel 10:

Locate the config/app.php file and add the service provider in the appropriate section:

    'providers' => ServiceProvider::defaultProviders()->merge([

    /*
    * Application Service Providers...
    */
    Jennairaderafaella\Inlite\InliteServiceProvider::class

    ])->toArray(),

First Used

Module Initialization:

To initialize the module, run the following command in your terminal:

php artisan jenna:install

Module Initialization:

To add a new module, execute this command:

php artisan jenna:inlite namemodule

Creating a Separate Folder for API and Views:

Sometimes, a module requires a dedicated folder to separate APIs and views. To achieve this, run the command below:

php artian jenna:inlite/api namemodule

Configuration js or/and css at directory modules

For Laravel Mix to build, configure the webpack.mix.js file and add the following line of code:

'resources/views/modules/**/**/*.js'

At vite folowing line this code, edit at resources/js/app.js:

import '../../../resources/views/modules/**/Assets/css/*.css';
import '../../../resources/views/modules/**/Assets/js/*.js';

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-25