LaravelPackages.net
Acme Inc.
Toggle sidebar
langleyfoxall/modules-laravel

Package for building modular laravel applications

106
7
1.6.4
About langleyfoxall/modules-laravel

langleyfoxall/modules-laravel is a Laravel package for package for building modular laravel applications. It currently has 7 GitHub stars and 106 downloads on Packagist (latest version 1.6.4). Install it with composer require langleyfoxall/modules-laravel. Discover more Laravel packages by langleyfoxall or browse all Laravel packages to compare alternatives.

Last updated

Modules Laravel

Package for building modular laravel applications. Master is used for development, check versioned branches for stable releases.

Installation

Require with composer:

composer require langleyfoxall/modules-laravel

Add service provider to config/app.php:

LangleyFoxall\Modules\LaravelModuleServiceProvider::class,

Publish configuration file:

php artisan vendor:publish --provider="LangleyFoxall\Modules\LaravelModuleServiceProvider"

Commands

Modules

To create a module simply run:

php artisan modules:make [<parent_module>.[<tree_of_modules>.]]<module_name>

To delete a module simply run:

php artisan modules:delete [<parent_module>.[<tree_of_modules>.]]<module_name>

Widgets

To create a widget simply run:

php artisan modules:make-widget <parent_module>.[<tree_of_modules>.]<module_name>

To delete a widget simply run:

php artisan modules:delete-widget <parent_module>.[<tree_of_modules>.]<module_name>

Misc

To force generation of configuration file run:

php artisan modules:config

Folder Structure

Modules that are generated can be found at app/Modules. The configuration file can be found at config/modules.php

app
    -- Modules
        -- <module_name>
            -- Http
                -- Controllers
                -- Middleware
            -- Migrations
            -- Models
            -- Modules
                -- <sub_module>
                    -- <repeat_structure>
            -- Providers
            -- Routes
            -- Views

Star History Chart