| 1234567891011121314151617181920 |
- <?php
- namespace App\Services;
- use App\ErrorTemp;
- use App\Interfaces\ErrorPush;
- class ErrorPushService implements ErrorPush
- {
- public function push(string $path, string $title, string $content): bool
- {
- ErrorTemp::query()->create([
- "position" => $path,
- "title" => $title,
- "content" => $content,
- "created_at" => date("Y-m-d H:i:s")
- ]);
- return true;
- }
- }
|