LaravelPackages.net
Acme Inc.
Toggle sidebar
webtack/lara-modules

133
0
1.2
About webtack/lara-modules

webtack/lara-modules is a Laravel package. It currently has 0 GitHub stars and 133 downloads on Packagist (latest version 1.2). Install it with composer require webtack/lara-modules. Discover more Laravel packages by webtack or browse all Laravel packages to compare alternatives.

Last updated

Lara-modules

webtack/lara-modules is a Laravel package which created to manage your Laravel app using modules.

Install

To install through Composer, by run the following command:

composer require webtack/lara-modules

Autoloading

By default the module classes are not loaded automatically. You can autoload your modules using psr-4. For example:

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

Add Service Provider

Add this service provider to your config/app.php file.

Webtack\Modules\ModulesServiceProvider::class

If the loader still does not see your modules, run the command

composer dump-autoload

Artisan

vendor:publish

Artisan command to Publish any publishable assets from vendor packages (Required to get Laravel Packages working!).

php artisan vendor:publish --provider="Webtack\Modules\ModulesServiceProvider" 

Test Module

Click here

http://localhost/path/to/project/test
http://localhost/path/to/project/api/test
to test the module's functionality

License

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

Comments