diff --git a/docs/creating-boxes.md b/docs/creating-boxes.md index b72b0e1..82237a4 100644 --- a/docs/creating-boxes.md +++ b/docs/creating-boxes.md @@ -7,7 +7,7 @@ 1. Init a git repo in an empty folder: `git init .` 2. Add composer.json: - ``` + ```json { "name": "vendor/mybox", "description": "My Box Rulez", diff --git a/docs/directory-structure.md b/docs/directory-structure.md index c53e65f..a9d4a9b 100644 --- a/docs/directory-structure.md +++ b/docs/directory-structure.md @@ -2,12 +2,14 @@ ## Minimum Fileset For A Concord Module -``` +```text module-src/ Providers/ - |-- ModuleServiceProvider.php + │ + └── ModuleServiceProvider.php resources/ - |-- manifest.php + │ + └── manifest.php ``` @@ -18,7 +20,7 @@ module-src/ The default locations are: -``` +```text module-src/ Console/ Commands/ @@ -28,35 +30,35 @@ module-src/ Factories/ Helpers/ Http/ - |-- Controllers/ - |-- Middleware/ - |-- Requests/ - |-- Resources/ + ├── Controllers/ + ├── Middleware/ + ├── Requests/ + └── Resources/ Jobs/ Listeners/ Models/ Notifications/ Providers/ - |-- ModuleServiceProvider.php - |-- EventServiceProvider.php + ├── ModuleServiceProvider.php + └── EventServiceProvider.php Services/ Tests/ - |-- Feature - |-- Unit + ├── Feature + └── Unit resources/ - |-- assets/ - |-- config/ - |-- module.php - |-- box.php - |-- database/ - |-- migrations/ - |-- seeds/ - |-- lang/ - |-- routes/ - |-- api.php - |-- web.php - |-- views/ - |-- manifest.php + ├── assets/ + └── config/ + ├── module.php + └── box.php + ├── database/ + ├── migrations/ + └── seeds/ + ├── lang/ + └── routes/ + ├── api.php + └── web.php + ├── views/ + └── manifest.php ```