Skip to content

Commit

Permalink
Merge pull request #1693 from solomon-ochepa/master
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
dcblogdev authored Nov 28, 2023
2 parents 5a75f90 + 10679c3 commit 2ef478a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Find out why you should use this package in the article: [Writing modular applic

## Install

To install through Composer, by run the following command:
To install via Composer, run:

``` bash
composer require nwidart/laravel-modules
Expand All @@ -45,17 +45,15 @@ php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProv
```

### Autoloading

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

By default, module classes aren't loaded automatically. To autoload them using psr-4, add the following line to the end of the root composer.json file under the autoload section:
``` json
{
"autoload": {
"psr-4": {
"App\\": "app/",
"Modules\\": "Modules/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
"Database\\Seeders\\": "database/seeders/",
"Modules\\": "Modules/"
}

}
Expand Down

0 comments on commit 2ef478a

Please sign in to comment.