feat: finish removing console kernel, add expiring invite notification

Signed-off-by: Miguel Nogueira <me@nogueira.codes>
This commit is contained in:
2025-08-09 20:38:50 +01:00
parent 9e77205820
commit 627c619abf
6 changed files with 304 additions and 74 deletions

View File

@@ -19,10 +19,22 @@
* along with Raspberry Staff Manager. If not, see <https://www.gnu.org/licenses/>.
*/
use App\Jobs\ExpiredInviteCleanup;
use App\Jobs\InviteLifecycleCleanup;
use App\Jobs\ProcessDueSuspensions;
use App\Jobs\ProcessExpiredAbsences;
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schedule;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->describe('Display an inspiring quote');
Schedule::command('votes:evaluate')->daily();
Schedule::job(new ProcessDueSuspensions())->daily();
Schedule::job(new ProcessExpiredAbsences())->daily();
Schedule::job(new InviteLifecycleCleanup())->daily();
Schedule::job(new ExpiredInviteCleanup())->daily();