mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-11-13 17:48:49 +01:00
72 lines
1.8 KiB
PHP
72 lines
1.8 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Filament\Components\Columns\TextColumn;
|
|
use Tapp\FilamentAuditing\Filament\Resources\Audits\AuditResource;
|
|
|
|
return [
|
|
|
|
'audits_sort' => [
|
|
'column' => 'created_at',
|
|
'direction' => 'desc',
|
|
],
|
|
|
|
'is_lazy' => true,
|
|
|
|
'grouped_table_actions' => false,
|
|
|
|
/**
|
|
* Extending Columns
|
|
* --------------------------------------------------------------------------
|
|
* In case you need to add a column to the AuditsRelationManager that does
|
|
* not already exist in the table, you can add it here, and it will be
|
|
* prepended to the table builder.
|
|
*/
|
|
'audits_extend' => [
|
|
'old_values' => [
|
|
'class' => TextColumn::class,
|
|
'methods' => [
|
|
'hidden' => true,
|
|
],
|
|
],
|
|
'new_values' => [
|
|
'class' => TextColumn::class,
|
|
'methods' => [
|
|
'hidden' => true,
|
|
],
|
|
],
|
|
],
|
|
|
|
'custom_audits_view' => false,
|
|
|
|
'custom_view_parameters' => [
|
|
],
|
|
|
|
'mapping' => [
|
|
],
|
|
|
|
'resources' => [
|
|
'AuditResource' => AuditResource::class,
|
|
],
|
|
|
|
'tenancy' => [
|
|
// Enable tenancy support
|
|
'enabled' => false,
|
|
|
|
// The Tenant model class (e.g., App\Models\Team::class, App\Models\Organization::class)
|
|
'model' => null,
|
|
|
|
// The tenant relationship name (defaults to snake_case of tenant model class name)
|
|
// For example: Team::class -> 'team', Organization::class -> 'organization'
|
|
// This should match what you configure in your Filament Panel:
|
|
// ->tenantOwnershipRelationshipName('team')
|
|
'relationship_name' => null,
|
|
|
|
// The tenant column name (defaults to snake_case of tenant model class name + '_id')
|
|
// You can override this if needed
|
|
'column' => null,
|
|
],
|
|
|
|
];
|