added cron for disposable email check

This commit is contained in:
Gitea
2025-05-09 16:44:31 +05:30
parent 3830d2e0f9
commit 0c8ed52eb8
2 changed files with 25 additions and 1 deletions

24
indisposableCron.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
// Adjust this path if your file location is different
require __DIR__ . '/vendor/autoload.php';
// Bootstrap the Laravel application
$app = require_once __DIR__ . '/bootstrap/app.php';
// Make the Console Kernel instance
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
try {
// Run the Artisan command 'ping'
$exitCode = $kernel->call('disposable:update');
// Get the output of the command
$output = $kernel->output();
echo "Artisan command 'schedule:run' executed successfully. Exit code: $exitCode\n";
echo "Output:\n$output";
} catch (\Exception $e) {
echo "Error running Artisan command: " . $e->getMessage();
}