diff options
author | devianl2 <devianleong@gmail.com> | 2022-02-11 11:21:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 11:21:33 +0800 |
commit | 9a3d5c62ac377bfcb9e31f98275636548c4d65ea (patch) | |
tree | f5f792b1775c82e103f492a25cce3c1234f8b4e7 /README.md | |
parent | ca8137f985224373c22fa195288fb093d548a75c (diff) | |
parent | f2faa8f007834444a129db4fb8f4ece901b21fed (diff) |
Merge pull request #7 from KhaledLela/main
Improve SCORM disk storage handler
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -32,8 +32,42 @@ php artisan vendor:publish --provider="Peopleaps\Scorm\ScormServiceProvider" ``` ## Step 3: +Run config cache for update cached configuration +```sh +php artisan config:cache +``` + +## Step 4: Migrate file to database ```sh php artisan migrate ``` +## Step 5 (Optional): +update SCORM config under config/scorm +- update scorm table names. +- update SCORM disk and configure disk @see config/filesystems.php +``` + 'disk' => 'scorm-local', + 'disk' => 'scorm-s3', + + // @see config/filesystems.php + 'disks' => [ + ..... + 'scorm-local' => [ + 'driver' => 'local', + 'root' => env('SCORM_ROOT_DIR'), // set root dir + 'visibility' => 'public', + ], + + 's3-scorm' => [ + 'driver' => 's3', + 'root' => env('SCORM_ROOT_DIR'), // set root dir + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_SCORM_BUCKET'), + ], + ..... + ] +``` |