Add Superuser Logging Dashboard

This commit is contained in:
2024-03-31 13:07:25 +02:00
parent aa7020c19d
commit 5afbe54268
13 changed files with 320 additions and 25 deletions

21
app/Models/Logging.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Logging extends Model
{
use HasFactory;
/**
* @var string
*/
protected $table = 'log_messages';
protected function today() {
return $this->whereDate('logged_at',Carbon::today());
}
}