29 lines
519 B
PHP
29 lines
519 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Services\InsForge\InsForgeTableService;
|
|
|
|
class ActivityLogService extends InsForgeTableService
|
|
{
|
|
protected function table(): string
|
|
{
|
|
return 'activity_logs';
|
|
}
|
|
|
|
protected function select(): string
|
|
{
|
|
return '*,users(name)';
|
|
}
|
|
|
|
protected function searchableColumns(): array
|
|
{
|
|
return ['description', 'action', 'entity_type'];
|
|
}
|
|
|
|
protected function sortableColumns(): array
|
|
{
|
|
return ['created_at'];
|
|
}
|
|
}
|