argument('plateforme_id')); if ($plateforme === null) { $this->error('Plateforme introuvable.'); return; } LtiDeploiement::create([ 'lti_plateforme_id' => $plateforme->id, 'deployment_id' => $this->argument('deployment_id'), ]); $this->info('Déploiement enregistré.'); } }