Download the PHP package learn2torials/laravel-modular without Composer
On this page you can find all versions of the php package learn2torials/laravel-modular. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download learn2torials/laravel-modular
More information about learn2torials/laravel-modular
Files in learn2torials/laravel-modular
Package laravel-modular
Short Description Laravel Modular App Generator Plugin
License MIT
Homepage https://learn2torials.com
Informations about the package laravel-modular
Laravel Modular App Plugin
Turn your existing laravel app into modular application. Laravel modular plugin allows you to write modular plugins for laravel.
Let's say, you are building a blog application. Your blog needs to have following features:
- comments
- blog post
- user management etc..
You can turn this features into a module and bundle your logic so that you can easily use this module for your other projects. You can easily turn on/off your module.
Plugin Requirements
- PHP >= 7.2
- Laravel >= 6.0
Newer Laravel Plugin
For older version >= 8.0 of Laravel use this plugin Modular Laravel
How to install this plugin
Run following command to your existing project.
Above command will create a new directory under App/Modules with following structure.
Next, once this folder structure is generated you can turn on this module by creating console.php file in config directory.
That is it, your module is now enabled. You can verify that your module is working by browsing
Add prefix before all your modules. Set following config in config/console.php file.
Now, your module url will be:
Enable translation for you module. Set following config in config/console.php file.
Now, your module url will be:
When prefix is enabled
How to use translations. Check your view file in your module to get the idea of usage:
Module Configurations
Once module is enabled you can access module related configurations using following syntax.
For example: if you have installed a user module. Configuration file for user module is located in Modules/User/config.php
How to run module migration/seeder
To run migration or seeder for your modules. Add seeder to config file and run following commands.
Reference
Example is shown on https://learn2torials.com/a/laravel-module-management
All versions of laravel-modular with dependencies
ext-curl Version *