@@ -25,7 +25,7 @@ Or, install manually by downloading the source files and adding the directory to
2525## Configuration (optional)
2626
2727The library's default behavior can be overridden or augment by its config file. Copy
28- ** bin /Assets.php** to ** app/Config/Assets.php** and follow the instructions in the
28+ ** examples /Assets.php** to ** app/Config/Assets.php** and follow the instructions in the
2929comments. If no config file is found the library will use its defaults.
3030
3131## Usage
@@ -50,6 +50,7 @@ helpful for including pre-bundled libraries. `$routes` maps each route to an ass
5050a directory of assets to load for that route.
5151
5252** Example:**
53+
5354```
5455public $routes = [
5556 '' => [
@@ -91,7 +92,7 @@ Manifests are JSON files with at least the following three properties:
9192* ` destination ` - The directory (relative to ` $config->fileBase ` ) for the assets
9293* ` resources ` - The list of resources to publish, each with at least its own ` source ` .
9394
94- See [ examples /] ( examples /) for some example manifest files compatible with their Composer
95+ See [ manifests /] ( manifests /) for some example manifest files compatible with their Composer
9596sources.
9697
9798## Example
@@ -104,14 +105,14 @@ the uploads:
104105
105106Add this module as well:
106107
107- composer require tatter\ assets
108+ composer require tatter/ assets
108109
109110Create manifests and the config file in your project:
110111```
111112mkdir app/Manifests
112- cp vendor/tatter/assets/examples /Dropzone.json app/Manifests/
113- cp vendor/tatter/assets/examples /Bootstrap.json app/Manifests/
114- cp vendor/tatter/assets/bin /Assets.php app/Config/
113+ cp vendor/tatter/assets/manifests /Dropzone.json app/Manifests/
114+ cp vendor/tatter/assets/manifests /Bootstrap.json app/Manifests/
115+ cp vendor/tatter/assets/examples /Assets.php app/Config/
115116```
116117
117118Edit your config file so Bootstrap will always load, and DropzoneJS will load on certain routes:
0 commit comments