ijeffro /
laralocker
| 1 | <?php |
||
| 2 | |||
| 3 | /* |
||
| 4 | |--------------------------------------------------------------------------------- |
||
| 5 | | |
||
| 6 | | LaraLocker = Laravel + Learning Locker || A Laravel Package for Learning Locker. |
||
| 7 | | |
||
| 8 | |--------------------------------------------------------------------------------- |
||
| 9 | */ |
||
| 10 | |||
| 11 | return [ |
||
| 12 | |||
| 13 | /* |
||
| 14 | |----------------------------------------------------------------------------- |
||
| 15 | | Learning Locker (LRS) Settings |
||
| 16 | |----------------------------------------------------------------------------- |
||
| 17 | | |
||
| 18 | | Specify Learning Locker Settings |
||
| 19 | | |
||
| 20 | | Docs: http://docs.learninglocker.net/ |
||
| 21 | | |
||
| 22 | */ |
||
| 23 | |||
| 24 | 'learning-locker' => [ |
||
| 25 | |||
| 26 | /* |
||
| 27 | |------------------------------------------------------------------------- |
||
| 28 | | Learning Locker Client Creadencials |
||
| 29 | |------------------------------------------------------------------------- |
||
| 30 | | |
||
| 31 | | Specify Client Creadencials for Learning Locker |
||
| 32 | | Docs: http://docs.learninglocker.net/http-clients/ |
||
| 33 | | |
||
| 34 | | URL Example: http://saas.learninglocker.net/ |
||
| 35 | | Key Example: f04d57806f2ea7fa635da72cdd7bb25855ef396e |
||
| 36 | | Secret Example: 506bf62d7e5970254f668f372020d7629ac1b2e3 |
||
| 37 | | |
||
| 38 | */ |
||
| 39 | |||
| 40 | 'api' => [ |
||
| 41 | 'url' => env('LEARNING_LOCKER_URL'), |
||
| 42 | 'key' => env('LEARNING_LOCKER_KEY'), |
||
| 43 | 'secret' => env('LEARNING_LOCKER_SECRET'), |
||
| 44 | ], |
||
| 45 | |||
| 46 | |||
| 47 | /* |
||
| 48 | |------------------------------------------------------------------------- |
||
| 49 | | xAPI Statement Settings |
||
| 50 | |------------------------------------------------------------------------- |
||
| 51 | | |
||
| 52 | | Specify xAPI Statement Settings for Learning Locker |
||
| 53 | | Docs: http://docs.learninglocker.net/http-statements/ |
||
| 54 | | |
||
| 55 | | Actor Type Example: mbox, account |
||
| 56 | | Endpoint Example: https://ht2.curatr3.com |
||
| 57 | | Actor Homepage Example: https://ht2.curatr3.com |
||
| 58 | | |
||
| 59 | */ |
||
| 60 | |||
| 61 | 'xapi_statements' => [ |
||
| 62 | 'actor_type' => 'mbox', |
||
| 63 | 'endpoint' => env('APP_URL'), |
||
| 64 | 'actor_hompage' => env('APP_URL'), |
||
| 65 | ], |
||
| 66 | |||
| 67 | ], |
||
| 68 | |||
| 69 | |||
| 70 | /* |
||
| 71 | |----------------------------------------------------------------------------- |
||
| 72 | | Laravel Framework Settings |
||
| 73 | |----------------------------------------------------------------------------- |
||
| 74 | | |
||
| 75 | | Specify Laravel Framework Settings |
||
| 76 | | |
||
| 77 | | Docs: https://laravel.com/docs/ |
||
| 78 | | |
||
| 79 | */ |
||
| 80 | |||
| 81 | 'laravel' => [ |
||
| 82 | 'route' => [ |
||
| 83 | 'api' => [ |
||
| 84 | 'prefix' => 'laralocker', |
||
| 85 | ], |
||
| 86 | 'web' => [ |
||
| 87 | 'prefix' => 'laralocker', |
||
| 88 | ], |
||
| 89 | ], |
||
| 90 | |||
| 91 | ], |
||
| 92 | |||
| 93 | |||
| 94 | /* |
||
| 95 | |----------------------------------------------------------------------------- |
||
| 96 | | Config xAPI Database Data |
||
| 97 | |----------------------------------------------------------------------------- |
||
| 98 | | |
||
| 99 | | Specify database tables and columns related to xAPI Statements data |
||
| 100 | | |
||
| 101 | */ |
||
| 102 | 'database' => [ |
||
| 103 | |||
| 104 | 'organisations' => [ |
||
| 105 | 'model' => Organisations::class, |
||
|
0 ignored issues
–
show
|
|||
| 106 | 'table' => 'organisations', |
||
| 107 | 'columns' => [ |
||
| 108 | 'name' => [ |
||
| 109 | 'fullname' => null, |
||
| 110 | 'firstname' => 'fname', |
||
| 111 | 'lastname' =>'lname', |
||
| 112 | ], |
||
| 113 | 'account' => [ |
||
| 114 | 'name' => 'uuid' |
||
| 115 | ] |
||
| 116 | ], |
||
| 117 | ], |
||
| 118 | 'journeys' => [ |
||
| 119 | 'model' => Journey::class, |
||
|
0 ignored issues
–
show
The type
Journey was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 120 | 'table' => 'journeys', |
||
| 121 | 'columns' => [ |
||
| 122 | 'name' => 'name', |
||
| 123 | ], |
||
| 124 | ], |
||
| 125 | 'actors' => [ |
||
| 126 | 'model' => User::class, |
||
|
0 ignored issues
–
show
The type
User was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 127 | 'table' => 'users', |
||
| 128 | 'columns' => [ |
||
| 129 | 'name' => [ |
||
| 130 | 'fullname' => null, |
||
| 131 | 'firstname' => 'fname', |
||
| 132 | 'lastname' =>'lname', |
||
| 133 | ], |
||
| 134 | 'account' => [ |
||
| 135 | 'name' => 'uuid', |
||
| 136 | 'homepage' => env('APP_URL'), |
||
| 137 | ], |
||
| 138 | ], |
||
| 139 | ], |
||
| 140 | 'verbs' => [ |
||
| 141 | 'table' => 'learning_activity_types', |
||
| 142 | 'columns' => [ |
||
| 143 | 'verb' => 'verb' |
||
| 144 | ], |
||
| 145 | ], |
||
| 146 | 'activities' => [ |
||
| 147 | 'table' => 'learning_activity', |
||
| 148 | 'columns' => [ |
||
| 149 | 'name' => 'name', |
||
| 150 | ], |
||
| 151 | ], |
||
| 152 | ], |
||
| 153 | |||
| 154 | /* |
||
| 155 | |-------------------------------------------------------------------------- |
||
| 156 | | Config xAPI Statement Export |
||
| 157 | |-------------------------------------------------------------------------- |
||
| 158 | | |
||
| 159 | | Here you can specify attributes related to your application file system |
||
| 160 | | |
||
| 161 | */ |
||
| 162 | 'export' => [ |
||
| 163 | 'enabled' => true, |
||
| 164 | ], |
||
| 165 | |||
| 166 | /* |
||
| 167 | |-------------------------------------------------------------------------- |
||
| 168 | | xAPI Statement Queue Config |
||
| 169 | |-------------------------------------------------------------------------- |
||
| 170 | | |
||
| 171 | | Here you can specify attributes related to your application file system |
||
| 172 | | |
||
| 173 | */ |
||
| 174 | 'queue' => [ |
||
| 175 | 'enabled' => true, |
||
| 176 | ], |
||
| 177 | |||
| 178 | |||
| 179 | /* |
||
| 180 | |-------------------------------------------------------------------------- |
||
| 181 | | Storage Config |
||
| 182 | |-------------------------------------------------------------------------- |
||
| 183 | | |
||
| 184 | | Here you can specify attributes related to your application file system |
||
| 185 | | |
||
| 186 | */ |
||
| 187 | 'storage' => [ |
||
| 188 | 'disk' => [ |
||
| 189 | 'subfolder' => env('FILESYSTEM_DRIVER', 'public'), |
||
| 190 | ], |
||
| 191 | 'database' => [ |
||
| 192 | 'name' => env('DB_DATABASE'), |
||
| 193 | 'user' => env('DB_USERNAME'), |
||
| 194 | 'password' => env('DB_PASSWORD'), |
||
| 195 | ], |
||
| 196 | 's3' => [ |
||
| 197 | 'bucket' => env('S3_BUCKET'), |
||
| 198 | 'region' => env('S3_REGION'), |
||
| 199 | 'subfolder' => env('AWS_SUBFOLDER'), |
||
| 200 | 'access_key' => env('AWS_ACCESS_KEY_ID'), |
||
| 201 | 'access_secret' => env('AWS_SECRET_ACCESS_KEY') |
||
| 202 | ], |
||
| 203 | |||
| 204 | ], |
||
| 205 | |||
| 206 | ]; |
||
| 207 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths