-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How make a full implementation #69
Comments
We're actively using this in our product. We use it for launches, AGS, and NRPS. We don't currently use deep linking, but others do. I haven't had time to mock up a full demo implementation, but if there are specific things you have questions about, I'm happy to answer them. I'm assuming you've seen it already, but if not we have some information in the wiki: https://github.com/packbackbooks/lti-1-3-php-library/wiki If you have suggestions of how to improve it, I'd love to hear them. |
Digging into the documentation, and I see that the the example implementation in the documentation refers to |
FWIW, I've been poking at this, the missing piece is really the model migrations for Working from the Laravel impelementation guide: curl -s "https://laravel.build/<lti-tool-name>" | bash
cd <lti-tool-name>
composer require packbackbooks/lti-1p3-tool firebase/php-jwt
rm app/Models/User.php
php artisan make:model Issuer --all In $table->string('auth_token_url');
$table->string('auth_login_url');
$table->string('client_id');
$table->string('key_set_url');
$table->string('kid');
$table->string('issuer');
$table->string('tool_private_key'); php artisan make:model Deployment --all In $table->string('deployment_id'); Copy-paste use Packback\Lti1p3\LtiServiceConnector; Copy-paste use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Config; Copy-paste Copy-paste mkdir app/Services Copy-paste Throughout, add namespaces as appropriate. |
You'll probably want a foreign key from the // This:
$issuer->deployments()->where('deployment_id', $deploymentId)->first();
// Not this:
Deployment::where('deployment_id', $deploymentId)->first(); |
Can you let me know where this code goes? Is it in the issuer migration file or is it already part of the code base in findDeployment? |
Good morning ,
Has anyone managed to make a complete implementation of this Lti-1-3 package, we would be grateful if you could share the information with us.
thanks.
The text was updated successfully, but these errors were encountered: