Add app/modules
to classmap autoload on composer.json.
Example of ServiceProvider for Product Module on app/modules/product.
<?php namespace App\Modules\Product;
class ServiceProvider extends \App\Modules\ServiceProvider {
public function register()
{
parent::register('product');
}
public function boot()
{
parent::boot('product');
}
}
Add 'App\Modules\Product\ServiceProvider'
to providers configuration on app/config/app.php.