PHP code example of swisnl / laravel-lti-provider

1. Go to this page and download the library: Download swisnl/laravel-lti-provider library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

swisnl / laravel-lti-provider example snippets


'providers' => [
    // ...
    Swis\Laravel\Lti\Providers\LtiProviderServiceProvider::class,
];

    protected function schedule(Schedule $schedule)
    {
        // ...
        $schedule->command('lti-provider:delete-expired-nonces')->daily();
    }

    $environment = MyLtiEnvironment::find($id);
    $dataConnector = new ModelDataConnector($environment);

        'models' => [
            'user-result' => 'REFERENCE TO YOUR NEW CLASS',
        ],
bash
php artisan lti-provider:install
bash
php artisan migrate