PHPackages                             jminayat/modules-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. jminayat/modules-laravel

ActiveProject

jminayat/modules-laravel
========================

modular laravel applications

v2.0.9(8y ago)31911[1 issues](https://github.com/JMinayaT/modules-laravel/issues)MITPHPPHP ^7.0

Since Dec 8Pushed 8y ago2 watchersCompare

[ Source](https://github.com/JMinayaT/modules-laravel)[ Packagist](https://packagist.org/packages/jminayat/modules-laravel)[ RSS](/packages/jminayat-modules-laravel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (22)Used By (0)

JMinayaT Laravel - Modules
==========================

[](#jminayat-laravel---modules)

`jminayat/modules-laravel` is a package for the administration of your laravel application in modules. compatible with Laravel version 5.5 .

- [Installation](#installation)
- [Usage](#usage)
- [Artisan Commands](#artisan-commands)
- [Facade methods](#facade-methods)
- [Module Methods](#module-methods)

Installation
------------

[](#installation)

Install the package through the composer.

```
composer require jminayat/modules-laravel
```

You need to load the module folder since it does not load automatically. You can autoload your modules using `psr-4`.

Edit main composer file, and add:

```
{
  "autoload": {
    "psr-4": {
      "App\\": "app/",
      "Modules\\": "modules/"
    }
  }
}
```

**Do not forget to execute `composer dump-autoload` .**

You can publish the Migrations.

```
php artisan vendor:publish --provider="JMinayaT\Modules\ModulesServiceProvider" --tag="migrations"
```

After the migration has been published, you can create the table of modules by executing the migrations:

```
php artisan migrate
```

You can publish the Config file (it's optional).

```
php artisan vendor:publish --provider="JMinayaT\Modules\ModulesServiceProvider" --tag="config"
```

When published, the `config/modules.php ` Config file contains:

```
