fedi-feed-router/app/Services/Article/ValidationService.php

21 lines
380 B
PHP
Raw Normal View History

2025-06-29 19:46:50 +02:00
<?php
namespace App\Services\Article;
use App\Models\Article;
class ValidationService
{
public static function validate(Article $article): Article
{
logger('Checking keywords for article: ' . $article->id);
$article->update([
'is_valid' => true,
'validated_at' => now(),
]);
return $article->refresh();
}
}