From 86c9b85e3eb7133b96a6626059c77a8bb153bc0f Mon Sep 17 00:00:00 2001
From: Peter Thomson
Date: Mon, 15 Jan 2024 15:45:48 +1300
Subject: [PATCH] Setup guide and move testing autoload folder to dev only.
---
composer.json | 10 +++++++---
docs/index.md | 4 ++--
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/composer.json b/composer.json
index d9ff156..8a4fb4f 100644
--- a/composer.json
+++ b/composer.json
@@ -18,12 +18,16 @@
"autoload": {
"psr-4": {
- "IcehouseVentures\\LaravelChartjs\\" : "src/",
- "IcehouseVentures\\LaravelChartjs\\Tests\\": "tests/"
+ "IcehouseVentures\\LaravelChartjs\\" : "src/"
}
},
-
+ "autoload-dev": {
+ "psr-4": {
+ "IcehouseVentures\\LaravelChartjs\\Tests\\": "tests/"
+
+ }
+ },
"extra": {
"laravel": {
"providers": [
diff --git a/docs/index.md b/docs/index.md
index 99ba9a7..f064c34 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -25,10 +25,10 @@ composer require icehouse-ventures/laravel-chartjs
Publish the configuration file to customize the package settings:
```bash
-php artisan vendor:publish --provider="IcehouseVentures\LaravelChartjs\Providers\ChartjsServiceProvider"
+php artisan vendor:publish --provider="IcehouseVentures\LaravelChartjs\Providers\ChartjsServiceProvider" --tag="config"
```
-In the config/chart.js.php Set the chartjs version to 4 to use the current version of chartjs and the delivery method to CDN for rapid setup and easy testing.
+In the config/chart.js.php set the Chartjs version to 4 to use the newest version of Chartjs, and the delivery method to CDN for rapid setup and easy testing.
### Creating a Chart