Also fix a typo
@@ -13,6 +13,7 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule): void
{
// $schedule->command('inspire')->hourly();
+ $schedule->command("app:publish-scheduled-articles")->everyMinute();
}
/**
@@ -38,7 +38,7 @@ class Article extends Model
function unpublish() {
- $this->status = static::STATUS_ARCHIVED;
+ $this->status = static::STATUS_ARCHIVE;
$this->save();