Build Laravel 13 ticket assistant with Docker, Livewire admin, and helpdesk scraper command

This commit is contained in:
SitiWeb
2026-04-29 13:11:39 +02:00
parent 141a1a3c9b
commit 3c4572bb12
58 changed files with 9377 additions and 455 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Services;
use App\Models\Article;
class AdminArticleService
{
public function paginate(int $perPage = 10)
{
return Article::query()->latest()->paginate($perPage);
}
public function create(string $title, string $content): Article
{
return Article::query()->create([
'title' => trim($title),
'content' => trim($content),
]);
}
}