Add Superuser Logging Dashboard
This commit is contained in:
21
app/Models/Logging.php
Normal file
21
app/Models/Logging.php
Normal 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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user