codder/laravel-modular 问题修复 & 功能扩展

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

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

codder/laravel-modular

最新稳定版本:v1.0.5

Composer 安装命令:

composer require codder/laravel-modular

包简介

A simple package of modules for laravel.

README 文档

README

Total Downloads Latest Stable Version License

codder/laravel-modular is a module system for Laravel applications. It uses Composer path repositories for autoloading, and Laravel package discovery for module initialization, and then provides minimal tooling to fill in any gaps. These modules use the existing Laravel package system, and follow existing Laravel conventions.

Documentation

The documentation will be available in soon.

Installation

You can install the package via composer:

composer require codder/laravel-modular

Create a module

Next, let's create a module:

php artisan module:make foo 

Modular will scaffold up a new module for you:

modules/
  composer.json
  foo/
    app/
    config/
    database/
    public/
    resources/
    routes/

Assets

Your assets are stored in modules/MODULE/public after that run php artisan storage:link to create symbolic links from your assets to public folder.

To call the assets in your blade just call the helper module_asset('foo::bar.jpg')

Livewire

This package supports Livewire >= 2!

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-24