mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
fix: fixed authorizes pivot middleware (#941)
This commit is contained in:
@@ -49,8 +49,6 @@ class PageDeleted extends WikiDeletedEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = PageFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return PageFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,8 +49,6 @@ class AnimeDeleted extends WikiDeletedEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = AnimeFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return AnimeFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,9 +60,7 @@ class SynonymDeleted extends WikiDeletedEvent implements UpdateRelatedIndicesEve
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = SynonymFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return SynonymFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -51,9 +51,7 @@ class EntryDeleted extends WikiDeletedEvent implements UpdateRelatedIndicesEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = EntryFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return EntryFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -56,8 +56,6 @@ class ThemeDeleted extends WikiDeletedEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = ThemeFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return ThemeFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,8 +49,6 @@ class ArtistDeleted extends WikiDeletedEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = ArtistFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return ArtistFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,8 +49,6 @@ class AudioDeleted extends WikiDeletedEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = AudioFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return AudioFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,8 +49,6 @@ class ExternalResourceDeleted extends WikiDeletedEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = ExternalResourceFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return ExternalResourceFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,9 +53,7 @@ class GroupDeleted extends WikiDeletedEvent implements UpdateRelatedIndicesEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = GroupFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return GroupFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -49,8 +49,6 @@ class ImageDeleted extends WikiDeletedEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = ImageFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return ImageFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,8 +49,6 @@ class SeriesDeleted extends WikiDeletedEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = SeriesFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return SeriesFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,9 +50,7 @@ class MembershipDeleted extends WikiDeletedEvent implements UpdateRelatedIndices
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = MembershipFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return MembershipFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -66,9 +66,7 @@ class PerformanceDeleted extends WikiDeletedEvent implements SyncArtistSongEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = PerformanceFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return PerformanceFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -54,9 +54,7 @@ class SongDeleted extends WikiDeletedEvent implements UpdateRelatedIndicesEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = SongFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return SongFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -49,8 +49,6 @@ class StudioDeleted extends WikiDeletedEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = StudioFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return StudioFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,8 +49,6 @@ class VideoScriptDeleted extends WikiDeletedEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = VideoScriptFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return VideoScriptFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,8 +49,6 @@ class VideoDeleted extends WikiDeletedEvent
|
||||
*/
|
||||
protected function getFilamentNotificationUrl(): string
|
||||
{
|
||||
$uriKey = VideoFilament::getRecordSlug();
|
||||
|
||||
return "/resources/$uriKey/{$this->getModel()->getKey()}";
|
||||
return VideoFilament::getUrl('view', ['record' => $this->getModel()]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ class AttachAction extends BaseAttachAction
|
||||
->__toString();
|
||||
|
||||
return is_object($gate) & method_exists($gate, $ability)
|
||||
? Gate::forUser(Auth::user())->any($ability, $ownerRecord)
|
||||
? Gate::forUser(Auth::user())->check($ability, $ownerRecord)
|
||||
: true;
|
||||
});
|
||||
|
||||
|
||||
@@ -50,8 +50,6 @@ class GiveRoleAction extends BaseAction
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -50,8 +50,6 @@ class RevokeRoleAction extends BaseAction
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -50,8 +50,6 @@ class GivePermissionAction extends BaseAction
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -50,8 +50,6 @@ class RevokePermissionAction extends BaseAction
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -50,8 +50,6 @@ class GivePermissionAction extends BaseAction
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -50,8 +50,6 @@ class GiveRoleAction extends BaseAction
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -50,8 +50,6 @@ class RevokePermissionAction extends BaseAction
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -50,8 +50,6 @@ class RevokeRoleAction extends BaseAction
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -18,6 +18,7 @@ use Filament\Forms\Components\Repeater;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Schemas\Components\Utilities\Set;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
|
||||
@@ -39,7 +40,7 @@ class DiscordEditMessageAction extends BaseAction
|
||||
parent::setUp();
|
||||
|
||||
$this->label(__('filament.table_actions.discord_thread.message.edit.name'));
|
||||
$this->icon(__('filament-icons.table_actions.discord_thread.message.edit'));
|
||||
$this->icon(Heroicon::OutlinedPencilSquare);
|
||||
|
||||
$this->visible(Gate::allows('deleteAny', DiscordThread::class));
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ use Filament\Forms\Components\ColorPicker;
|
||||
use Filament\Forms\Components\Repeater;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
|
||||
class DiscordSendMessageAction extends BaseAction
|
||||
@@ -36,7 +37,7 @@ class DiscordSendMessageAction extends BaseAction
|
||||
parent::setUp();
|
||||
|
||||
$this->label(__('filament.table_actions.discord_thread.message.send.name'));
|
||||
$this->icon(__('filament-icons.table_actions.discord_thread.message.send'));
|
||||
$this->icon(Heroicon::OutlinedChatBubbleLeft);
|
||||
|
||||
$this->visible(Gate::allows('deleteAny', DiscordThread::class));
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ use App\Actions\Models\List\External\SyncExternalProfileAction as SyncExternalPr
|
||||
use App\Enums\Auth\Role;
|
||||
use App\Filament\Actions\BaseAction;
|
||||
use App\Models\List\ExternalProfile;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class SyncExternalProfileAction extends BaseAction
|
||||
@@ -28,7 +29,7 @@ class SyncExternalProfileAction extends BaseAction
|
||||
parent::setUp();
|
||||
|
||||
$this->label(__('filament.actions.models.list.sync_profile.name'));
|
||||
$this->icon(__('filament-icons.actions.models.list.sync_profile'));
|
||||
$this->icon(Heroicon::OutlinedArrowPath);
|
||||
|
||||
$this->visible(Auth::user()->hasRole(Role::ADMIN->value));
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ use Filament\Forms\Components\Checkbox;
|
||||
use Filament\Notifications\Notification;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
@@ -56,7 +57,7 @@ class BackfillAnimeAction extends BaseAction
|
||||
parent::setUp();
|
||||
|
||||
$this->label(__('filament.actions.anime.backfill.name'));
|
||||
$this->icon(__('filament-icons.actions.anime.backfill'));
|
||||
$this->icon(Heroicon::OutlinedBars4);
|
||||
|
||||
$this->visible(Gate::allows('create', Anime::class));
|
||||
|
||||
@@ -97,8 +98,6 @@ class BackfillAnimeAction extends BaseAction
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.|null.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): ?Schema
|
||||
{
|
||||
|
||||
@@ -11,6 +11,7 @@ use App\Models\Discord\DiscordThread;
|
||||
use App\Models\Wiki\Anime;
|
||||
use Exception;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
|
||||
class DiscordThreadAction extends BaseAction
|
||||
@@ -31,7 +32,7 @@ class DiscordThreadAction extends BaseAction
|
||||
parent::setUp();
|
||||
|
||||
$this->label(__('filament.actions.anime.discord_thread.name'));
|
||||
$this->icon(__('filament-icons.actions.anime.discord_thread'));
|
||||
$this->icon(Heroicon::OutlinedChatBubbleLeftRight);
|
||||
|
||||
$this->visible(Gate::allows('create', DiscordThread::class));
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ use App\Filament\Components\Fields\TextInput;
|
||||
use App\Models\BaseModel;
|
||||
use App\Models\Wiki\ExternalResource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
@@ -32,7 +33,7 @@ abstract class AttachResourceAction extends BaseAction
|
||||
parent::setUp();
|
||||
|
||||
$this->label(__('filament.actions.models.wiki.attach_resource.name'));
|
||||
$this->icon(__('filament-icons.actions.models.wiki.attach_resource'));
|
||||
$this->icon(Heroicon::OutlinedQueueList);
|
||||
|
||||
$this->visible(Gate::allows('create', ExternalResource::class));
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ use App\Models\BaseModel;
|
||||
use App\Models\Wiki\Image;
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class AttachImageAction extends BaseAction
|
||||
@@ -38,7 +39,7 @@ class AttachImageAction extends BaseAction
|
||||
parent::setUp();
|
||||
|
||||
$this->label(__('filament.actions.models.wiki.attach_image.name'));
|
||||
$this->icon(__('filament-icons.actions.models.wiki.attach_image'));
|
||||
$this->icon(Heroicon::OutlinedPhoto);
|
||||
|
||||
$this->visible(function ($livewire) {
|
||||
if (Auth::user()->cannot('create', Image::class)) {
|
||||
|
||||
@@ -90,8 +90,6 @@ class BackfillStudioAction extends BaseAction implements ShouldQueue
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@ use App\Models\Wiki\Video;
|
||||
use Exception;
|
||||
use Filament\Notifications\Notification;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
@@ -45,7 +46,7 @@ class BackfillAudioAction extends BaseAction implements ShouldQueue
|
||||
|
||||
$this->label(__('filament.actions.video.backfill.name'));
|
||||
|
||||
$this->icon(__('filament-icons.actions.video.backfill'));
|
||||
$this->icon(Heroicon::OutlinedSpeakerWave);
|
||||
|
||||
$this->visible(Gate::allows('create', Audio::class));
|
||||
|
||||
@@ -83,8 +84,6 @@ class BackfillAudioAction extends BaseAction implements ShouldQueue
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -38,8 +38,6 @@ class ReconcileDumpAction extends ReconcileStorageAction
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@ use App\Filament\Actions\Repositories\ReconcileAction;
|
||||
use App\Filament\Components\Fields\TextInput;
|
||||
use App\Rules\Storage\StorageDirectoryExistsRule;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
@@ -22,7 +23,7 @@ abstract class ReconcileStorageAction extends ReconcileAction implements Interac
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->icon(__('filament-icons.table_actions.base.reconcile'));
|
||||
$this->icon(Heroicon::OutlinedArrowPath);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -46,8 +47,6 @@ abstract class ReconcileStorageAction extends ReconcileAction implements Interac
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -12,6 +12,7 @@ use App\Models\Admin\Dump;
|
||||
use Exception;
|
||||
use Filament\Forms\Components\Checkbox;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Database\MySqlConnection;
|
||||
use Illuminate\Database\PostgresConnection;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
@@ -27,7 +28,7 @@ abstract class DumpAction extends BaseAction
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->icon(__('filament-icons.table_actions.dump.dump'));
|
||||
$this->icon(Heroicon::OutlinedCircleStack);
|
||||
|
||||
$this->visible(Gate::allows('create', Dump::class));
|
||||
}
|
||||
@@ -50,8 +51,6 @@ abstract class DumpAction extends BaseAction
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
@@ -66,8 +65,6 @@ abstract class DumpAction extends BaseAction
|
||||
|
||||
/**
|
||||
* Get the fields available on the action for a MySql db connection.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function fieldsForMySql(Schema $schema): Schema
|
||||
{
|
||||
@@ -136,8 +133,6 @@ abstract class DumpAction extends BaseAction
|
||||
|
||||
/**
|
||||
* Get the fields available on the action for a PostgreSql db connection.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function fieldsForPostgreSql(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@ namespace App\Filament\Actions\Storage\Base;
|
||||
use App\Actions\Storage\Base\DeleteAction as BaseDeleteAction;
|
||||
use App\Contracts\Actions\Storage\StorageAction as StorageActionContract;
|
||||
use App\Filament\Actions\Storage\StorageAction;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
abstract class DeleteAction extends StorageAction
|
||||
@@ -20,7 +21,7 @@ abstract class DeleteAction extends StorageAction
|
||||
|
||||
$this->color('danger');
|
||||
|
||||
$this->icon(__('filament-icons.actions.base.delete'));
|
||||
$this->icon(Heroicon::Trash);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -11,6 +11,7 @@ use App\Filament\Actions\Storage\StorageAction;
|
||||
use App\Filament\Components\Fields\TextInput;
|
||||
use App\Rules\Storage\StorageFileDirectoryExistsRule;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
@@ -23,13 +24,11 @@ abstract class MoveAction extends StorageAction implements InteractsWithDisk
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->icon(__('filament-icons.actions.storage.move'));
|
||||
$this->icon(Heroicon::OutlinedArrowLongRight);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -8,6 +8,7 @@ use App\Actions\Storage\Base\PruneAction as BasePruneAction;
|
||||
use App\Filament\Actions\Storage\StorageAction;
|
||||
use App\Filament\Components\Fields\TextInput;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
abstract class PruneAction extends StorageAction
|
||||
@@ -19,13 +20,11 @@ abstract class PruneAction extends StorageAction
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->icon(__('filament-icons.table_actions.base.prune'));
|
||||
$this->icon(Heroicon::OutlinedTrash);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -13,6 +13,7 @@ use App\Filament\Resources\Wiki\Video\RelationManagers\ScriptVideoRelationManage
|
||||
use App\Rules\Storage\StorageDirectoryExistsRule;
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
@@ -25,13 +26,11 @@ abstract class UploadAction extends StorageAction implements InteractsWithDisk
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->icon(__('filament-icons.table_actions.base.upload'));
|
||||
$this->icon(Heroicon::OutlinedArrowUpTray);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the schema available on the action.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getSchema(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -17,6 +17,7 @@ use App\Models\Wiki\Video;
|
||||
use App\Models\Wiki\Video\VideoScript;
|
||||
use App\Rules\Storage\StorageFileDirectoryExistsRule;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
@@ -40,7 +41,7 @@ class MoveAllAction extends BaseAction
|
||||
parent::setUp();
|
||||
|
||||
$this->label(__('filament.actions.base.move_all'));
|
||||
$this->icon(__('filament-icons.actions.base.move_all'));
|
||||
$this->icon(Heroicon::OutlinedArrowLongRight);
|
||||
|
||||
$this->visible(Gate::any('create', [Audio::class, Video::class, VideoScript::class]));
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ use App\Models\Discord\DiscordThread;
|
||||
use App\Models\Wiki\Video;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Enums\Width;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
|
||||
@@ -35,7 +36,7 @@ class VideoDiscordNotificationBulkAction extends BaseBulkAction
|
||||
$this->modalWidth(Width::Large);
|
||||
|
||||
$this->label(__('filament.bulk_actions.discord.notification.name'));
|
||||
$this->icon(__('filament-icons.bulk_actions.discord.notification'));
|
||||
$this->icon(Heroicon::OutlinedBell);
|
||||
|
||||
$this->visible(Gate::allows('create', DiscordThread::class));
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ namespace App\Filament\BulkActions\Storage\Base;
|
||||
use App\Actions\Storage\Base\DeleteAction as BaseDeleteAction;
|
||||
use App\Filament\BulkActions\Storage\StorageBulkAction;
|
||||
use App\Models\BaseModel;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
|
||||
abstract class DeleteBulkAction extends StorageBulkAction
|
||||
{
|
||||
@@ -19,7 +20,7 @@ abstract class DeleteBulkAction extends StorageBulkAction
|
||||
|
||||
$this->color('danger');
|
||||
|
||||
$this->icon(__('filament-icons.actions.base.delete'));
|
||||
$this->icon(Heroicon::Trash);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,7 @@ use App\Actions\Storage\Wiki\Video\DeleteVideoAction as DeleteVideo;
|
||||
use App\Filament\BulkActions\Storage\Base\DeleteBulkAction;
|
||||
use App\Models\BaseModel;
|
||||
use App\Models\Wiki\Video;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
|
||||
class DeleteVideoBulkAction extends DeleteBulkAction
|
||||
@@ -28,7 +29,7 @@ class DeleteVideoBulkAction extends DeleteBulkAction
|
||||
parent::setUp();
|
||||
|
||||
$this->label(__('filament.actions.video.delete.name'));
|
||||
$this->icon(__('filament-icons.actions.base.delete'));
|
||||
$this->icon(Heroicon::Trash);
|
||||
|
||||
$this->visible(Gate::allows('forceDeleteAny', Video::class));
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Filament\Components\Columns;
|
||||
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Columns\TextColumn as ColumnsTextColumn;
|
||||
|
||||
class TextColumn extends ColumnsTextColumn
|
||||
@@ -16,6 +17,6 @@ class TextColumn extends ColumnsTextColumn
|
||||
return $this
|
||||
->copyable($condition)
|
||||
->copyMessage(__('filament.actions.base.copied'))
|
||||
->icon(__('filament-icons.actions.base.copied'));
|
||||
->icon(Heroicon::OutlinedClipboard);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace App\Filament\Components\Infolist;
|
||||
|
||||
use Filament\Infolists\Components\TextEntry as ComponentsTextEntry;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
|
||||
class TextEntry extends ComponentsTextEntry
|
||||
{
|
||||
@@ -16,6 +17,6 @@ class TextEntry extends ComponentsTextEntry
|
||||
return $this
|
||||
->copyable($condition)
|
||||
->copyMessage(__('filament.actions.base.copied'))
|
||||
->icon(__('filament-icons.actions.base.copied'));
|
||||
->icon(Heroicon::OutlinedClipboard);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ use App\Filament\Widgets\List\PlaylistTrackChart;
|
||||
use App\Models\Auth\User;
|
||||
use Filament\Facades\Filament;
|
||||
use Filament\Panel;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
|
||||
class AdminDashboard extends BaseDashboard
|
||||
{
|
||||
@@ -42,9 +43,9 @@ class AdminDashboard extends BaseDashboard
|
||||
/**
|
||||
* Get the icon for the dashboard.
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.dashboards.admin');
|
||||
return Heroicon::ChartBarSquare;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,6 +9,7 @@ use App\Models\Auth\User;
|
||||
// use App\Filament\Widgets\Admin\ExceptionsTableWidget;
|
||||
use Filament\Facades\Filament;
|
||||
use Filament\Panel;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
|
||||
class DeveloperDashboard extends BaseDashboard
|
||||
{
|
||||
@@ -39,9 +40,9 @@ class DeveloperDashboard extends BaseDashboard
|
||||
/**
|
||||
* Get the icon for the dashboard.
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.dashboards.dev');
|
||||
return Heroicon::CodeBracket;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,6 +9,7 @@ use App\Filament\Widgets\Wiki\Artist\ArtistChart;
|
||||
use App\Filament\Widgets\Wiki\Series\SeriesChart;
|
||||
use App\Filament\Widgets\Wiki\Video\VideoChart;
|
||||
use Filament\Panel;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
|
||||
class WikiDashboard extends BaseDashboard
|
||||
{
|
||||
@@ -31,9 +32,9 @@ class WikiDashboard extends BaseDashboard
|
||||
/**
|
||||
* Get the icon for the dashboard.
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.dashboards.wiki');
|
||||
return Heroicon::ChartBar;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,8 +35,6 @@ abstract class PermissionRelationManager extends BaseRelationManager
|
||||
* Get the header actions available for the relation. These are merged with the table actions of the resources.
|
||||
*
|
||||
* @return \Filament\Actions\Action[]
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@@ -35,8 +35,6 @@ abstract class RoleRelationManager extends BaseRelationManager
|
||||
* Get the header actions available for the relation. These are merged with the table actions of the resources.
|
||||
*
|
||||
* @return \Filament\Actions\Action[]
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@@ -35,8 +35,6 @@ abstract class UserRelationManager extends BaseRelationManager
|
||||
* Get the header actions available for the relation. These are merged with the table actions of the resources.
|
||||
*
|
||||
* @return \Filament\Actions\Action[]
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@@ -56,8 +56,6 @@ abstract class BaseRelationManager extends RelationManager
|
||||
|
||||
/**
|
||||
* The index page of the relation resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
@@ -112,8 +110,6 @@ abstract class BaseRelationManager extends RelationManager
|
||||
* Get the filters available for the relation.
|
||||
*
|
||||
* @return \Filament\Tables\Filters\BaseFilter[]
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getFilters(): array
|
||||
{
|
||||
@@ -137,8 +133,6 @@ abstract class BaseRelationManager extends RelationManager
|
||||
*
|
||||
* @param array<int, \Filament\Actions\ActionGroup|Action>|null $actionsIncludedInGroup
|
||||
* @return array<int, \Filament\Actions\ActionGroup|Action>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getBulkActions(?array $actionsIncludedInGroup = []): array
|
||||
{
|
||||
@@ -155,8 +149,6 @@ abstract class BaseRelationManager extends RelationManager
|
||||
* Get the header actions available for the relation. These are merged with the table actions of the resources.
|
||||
*
|
||||
* @return Action[]
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@@ -25,6 +25,7 @@ use Filament\Infolists\Components\KeyValueEntry;
|
||||
use Filament\Resources\Pages\PageRegistration;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Enums\TextSize;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
@@ -42,8 +43,6 @@ class ActionLog extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -52,8 +51,6 @@ class ActionLog extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -62,8 +59,6 @@ class ActionLog extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -72,12 +67,10 @@ class ActionLog extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.action_logs');
|
||||
return Heroicon::OutlinedRectangleStack;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -90,8 +83,6 @@ class ActionLog extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -116,8 +107,6 @@ class ActionLog extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -185,8 +174,6 @@ class ActionLog extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -243,8 +230,6 @@ class ActionLog extends BaseResource
|
||||
* Get the filters available for the resource.
|
||||
*
|
||||
* @return array<int, \Filament\Tables\Filters\BaseFilter>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getFilters(): array
|
||||
{
|
||||
@@ -341,8 +326,6 @@ class ActionLog extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -15,6 +15,7 @@ use Filament\Forms\Components\MarkdownEditor;
|
||||
use Filament\Resources\Pages\PageRegistration;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -30,8 +31,6 @@ class Announcement extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -40,8 +39,6 @@ class Announcement extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -50,8 +47,6 @@ class Announcement extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -60,12 +55,10 @@ class Announcement extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.announcements');
|
||||
return Heroicon::OutlinedMegaphone;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -78,8 +71,6 @@ class Announcement extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -121,8 +112,6 @@ class Announcement extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -152,8 +141,6 @@ class Announcement extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -18,6 +18,7 @@ use App\Models\Admin\Dump as DumpModel;
|
||||
use Filament\Actions\ActionGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -32,8 +33,6 @@ class Dump extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -42,8 +41,6 @@ class Dump extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -52,8 +49,6 @@ class Dump extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -62,12 +57,10 @@ class Dump extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.dumps');
|
||||
return Heroicon::OutlinedCircleStack;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -80,8 +73,6 @@ class Dump extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -90,8 +81,6 @@ class Dump extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -126,8 +115,6 @@ class Dump extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -152,8 +139,6 @@ class Dump extends BaseResource
|
||||
* Get the table actions available for the resource.
|
||||
*
|
||||
* @return array<int, ActionGroup|\Filament\Actions\Action>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getTableActions(): array
|
||||
{
|
||||
@@ -174,8 +159,6 @@ class Dump extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -21,8 +21,6 @@ class Exception extends ExceptionResource
|
||||
{
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -31,8 +29,6 @@ class Exception extends ExceptionResource
|
||||
|
||||
/**
|
||||
* The index page of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
@@ -96,8 +92,6 @@ class Exception extends ExceptionResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -14,6 +14,7 @@ use App\Filament\Resources\BaseResource;
|
||||
use App\Models\Admin\Feature as FeatureModel;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -29,8 +30,6 @@ class Feature extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -39,8 +38,6 @@ class Feature extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -49,8 +46,6 @@ class Feature extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -59,12 +54,10 @@ class Feature extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.features');
|
||||
return Heroicon::OutlinedCog6Tooth;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -77,8 +70,6 @@ class Feature extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -87,8 +78,6 @@ class Feature extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -135,8 +124,6 @@ class Feature extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -165,8 +152,6 @@ class Feature extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -25,6 +25,7 @@ use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Components\Utilities\Get;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -42,8 +43,6 @@ class FeaturedTheme extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -52,8 +51,6 @@ class FeaturedTheme extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -62,8 +59,6 @@ class FeaturedTheme extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -72,12 +67,10 @@ class FeaturedTheme extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.featured_themes');
|
||||
return Heroicon::OutlinedCalendarDays;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -108,8 +101,6 @@ class FeaturedTheme extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -207,8 +198,6 @@ class FeaturedTheme extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -243,8 +232,6 @@ class FeaturedTheme extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -259,8 +246,6 @@ class FeaturedTheme extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@ use App\Models\Auth\Permission as PermissionModel;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -33,8 +34,6 @@ class Permission extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -43,8 +42,6 @@ class Permission extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -53,8 +50,6 @@ class Permission extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -63,12 +58,10 @@ class Permission extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.permissions');
|
||||
return Heroicon::OutlinedInformationCircle;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -81,8 +74,6 @@ class Permission extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -91,8 +82,6 @@ class Permission extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -127,8 +116,6 @@ class Permission extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -153,8 +140,6 @@ class Permission extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -184,8 +169,6 @@ class Permission extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -25,6 +25,7 @@ use Filament\Infolists\Components\IconEntry;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Columns\ColorColumn;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Table;
|
||||
@@ -41,8 +42,6 @@ class Role extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -51,8 +50,6 @@ class Role extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -61,8 +58,6 @@ class Role extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -71,12 +66,10 @@ class Role extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.roles');
|
||||
return Heroicon::OutlinedBriefcase;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -89,8 +82,6 @@ class Role extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -99,8 +90,6 @@ class Role extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -159,8 +148,6 @@ class Role extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -195,8 +182,6 @@ class Role extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -212,8 +197,6 @@ class Role extends BaseResource
|
||||
* Get the filters available for the resource.
|
||||
*
|
||||
* @return array<int, \Filament\Tables\Filters\BaseFilter>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getFilters(): array
|
||||
{
|
||||
@@ -246,8 +229,6 @@ class Role extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -23,6 +23,7 @@ use Filament\Infolists\Components\ImageEntry;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Columns\ImageColumn;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -38,8 +39,6 @@ class User extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -48,8 +47,6 @@ class User extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -58,8 +55,6 @@ class User extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -68,12 +63,10 @@ class User extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.users');
|
||||
return Heroicon::OutlinedUsers;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -86,8 +79,6 @@ class User extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -96,8 +87,6 @@ class User extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -139,15 +128,13 @@ class User extends BaseResource
|
||||
|
||||
TextColumn::make(UserModel::ATTRIBUTE_EMAIL)
|
||||
->label(__('filament.fields.user.email'))
|
||||
->icon(__('filament-icons.fields.user.email'))
|
||||
->icon(Heroicon::Envelope)
|
||||
->searchable(isIndividual: true),
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -166,7 +153,7 @@ class User extends BaseResource
|
||||
|
||||
TextEntry::make(UserModel::ATTRIBUTE_EMAIL)
|
||||
->label(__('filament.fields.user.email'))
|
||||
->icon(__('filament-icons.fields.user.email')),
|
||||
->icon(Heroicon::Envelope),
|
||||
|
||||
TextEntry::make(UserModel::ATTRIBUTE_ID)
|
||||
->label(__('filament.fields.base.id')),
|
||||
@@ -181,8 +168,6 @@ class User extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -227,8 +212,6 @@ class User extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -15,8 +15,6 @@ abstract class BaseListResources extends ListRecords
|
||||
* Get the header actions available.
|
||||
*
|
||||
* @return \Filament\Actions\Action[]
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@@ -13,8 +13,6 @@ abstract class BaseManageResources extends ManageRecords
|
||||
* Get the header actions available.
|
||||
*
|
||||
* @return \Filament\Actions\Action[]
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
protected function getActions(): array
|
||||
{
|
||||
|
||||
@@ -19,8 +19,6 @@ class BaseViewResource extends ViewRecord
|
||||
* Get the header actions available.
|
||||
*
|
||||
* @return \Filament\Actions\Action[]
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@@ -36,8 +36,6 @@ abstract class BaseResource extends Resource
|
||||
{
|
||||
/**
|
||||
* Determine if the resource can globally search.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function canGloballySearch(): bool
|
||||
{
|
||||
@@ -46,21 +44,14 @@ abstract class BaseResource extends Resource
|
||||
|
||||
/**
|
||||
* Get the route key for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordRouteKeyName(): string
|
||||
{
|
||||
/** @var Model $model */
|
||||
$model = static::getModel();
|
||||
|
||||
return (new $model)->getKeyName();
|
||||
return (new static::$model)->getKeyName();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -69,8 +60,6 @@ abstract class BaseResource extends Resource
|
||||
|
||||
/**
|
||||
* The index page of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
@@ -92,8 +81,6 @@ abstract class BaseResource extends Resource
|
||||
* Get the filters available for the resource.
|
||||
*
|
||||
* @return \Filament\Tables\Filters\BaseFilter[]
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getFilters(): array
|
||||
{
|
||||
@@ -156,8 +143,6 @@ abstract class BaseResource extends Resource
|
||||
*
|
||||
* @param array<int, ActionGroup|Action>|null $actionsIncludedInGroup
|
||||
* @return array<int, ActionGroup|Action>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getBulkActions(?array $actionsIncludedInGroup = []): array
|
||||
{
|
||||
@@ -176,8 +161,6 @@ abstract class BaseResource extends Resource
|
||||
* Get the table actions available for the resource.
|
||||
*
|
||||
* @return array<int, ActionGroup|Action>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getTableActions(): array
|
||||
{
|
||||
@@ -202,8 +185,6 @@ abstract class BaseResource extends Resource
|
||||
* Get the base relationships available for all resources.
|
||||
*
|
||||
* @return array<int, \Filament\Resources\RelationManagers\RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getBaseRelations(): array
|
||||
{
|
||||
@@ -214,8 +195,6 @@ abstract class BaseResource extends Resource
|
||||
|
||||
/**
|
||||
* Get the generic slug (URI key) for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getSlug(?Panel $panel = null): string
|
||||
{
|
||||
|
||||
@@ -25,6 +25,7 @@ use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Components\Utilities\Set;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -41,8 +42,6 @@ class DiscordThread extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -51,8 +50,6 @@ class DiscordThread extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -61,8 +58,6 @@ class DiscordThread extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -71,18 +66,14 @@ class DiscordThread extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.discord_thread');
|
||||
return Heroicon::OutlinedChatBubbleLeftRight;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -112,8 +103,6 @@ class DiscordThread extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -161,8 +150,6 @@ class DiscordThread extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -186,8 +173,6 @@ class DiscordThread extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -233,8 +218,6 @@ class DiscordThread extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@ use Filament\Forms\Components\MarkdownEditor;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -30,8 +31,6 @@ class Page extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -40,8 +39,6 @@ class Page extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -50,8 +47,6 @@ class Page extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -60,12 +55,10 @@ class Page extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.pages');
|
||||
return Heroicon::OutlinedDocumentText;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -78,8 +71,6 @@ class Page extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -88,8 +79,6 @@ class Page extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -147,8 +136,6 @@ class Page extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -182,8 +169,6 @@ class Page extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -198,8 +183,6 @@ class Page extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
+3
-18
@@ -26,6 +26,7 @@ use Filament\Infolists\Components\IconEntry;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
@@ -42,8 +43,6 @@ class ExternalEntry extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -52,8 +51,6 @@ class ExternalEntry extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -62,8 +59,6 @@ class ExternalEntry extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -72,12 +67,10 @@ class ExternalEntry extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.external_entries');
|
||||
return Heroicon::OutlinedQueueList;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -106,8 +99,6 @@ class ExternalEntry extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -170,8 +161,6 @@ class ExternalEntry extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -206,8 +195,6 @@ class ExternalEntry extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -238,8 +225,6 @@ class ExternalEntry extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
-2
@@ -15,8 +15,6 @@ class ListExternalEntries extends BaseListResources
|
||||
* Get the header actions available.
|
||||
*
|
||||
* @return \Filament\Actions\Action[]
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@@ -24,6 +24,7 @@ use App\Models\List\ExternalProfile as ExternalProfileModel;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -39,8 +40,6 @@ class ExternalProfile extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -49,8 +48,6 @@ class ExternalProfile extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -59,8 +56,6 @@ class ExternalProfile extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -69,12 +64,10 @@ class ExternalProfile extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.external_profiles');
|
||||
return Heroicon::OutlinedUser;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -87,8 +80,6 @@ class ExternalProfile extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -110,8 +101,6 @@ class ExternalProfile extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -169,8 +158,6 @@ class ExternalProfile extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -204,8 +191,6 @@ class ExternalProfile extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -234,8 +219,6 @@ class ExternalProfile extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -27,6 +27,7 @@ use Filament\Forms\Components\Textarea;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -42,8 +43,6 @@ class Playlist extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -52,8 +51,6 @@ class Playlist extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -62,8 +59,6 @@ class Playlist extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -72,12 +67,10 @@ class Playlist extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.playlists');
|
||||
return Heroicon::OutlinedPlay;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -90,8 +83,6 @@ class Playlist extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -117,8 +108,6 @@ class Playlist extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -203,8 +192,6 @@ class Playlist extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -252,8 +239,6 @@ class Playlist extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -286,8 +271,6 @@ class Playlist extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -29,6 +29,7 @@ use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Components\Utilities\Get;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -45,8 +46,6 @@ class Track extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -55,8 +54,6 @@ class Track extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -65,8 +62,6 @@ class Track extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -75,12 +70,10 @@ class Track extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.playlist_tracks');
|
||||
return Heroicon::OutlinedPlay;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -93,8 +86,6 @@ class Track extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -121,8 +112,6 @@ class Track extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -220,8 +209,6 @@ class Track extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -257,8 +244,6 @@ class Track extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -286,8 +271,6 @@ class Track extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@ use App\Models\User\Report as ReportModel;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -34,8 +35,6 @@ class Report extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -44,8 +43,6 @@ class Report extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -54,8 +51,6 @@ class Report extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -64,12 +59,10 @@ class Report extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.reports');
|
||||
return Heroicon::OutlinedLightBulb;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -82,8 +75,6 @@ class Report extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -108,8 +99,6 @@ class Report extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -144,8 +133,6 @@ class Report extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -184,8 +171,6 @@ class Report extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -200,8 +185,6 @@ class Report extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@ use Filament\Facades\Filament;
|
||||
use Filament\Infolists\Components\KeyValueEntry;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -37,8 +38,6 @@ class ReportStep extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -47,8 +46,6 @@ class ReportStep extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -57,8 +54,6 @@ class ReportStep extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -67,12 +62,10 @@ class ReportStep extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.report_steps');
|
||||
return Heroicon::OutlinedLightBulb;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -85,8 +78,6 @@ class ReportStep extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -110,8 +101,6 @@ class ReportStep extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -148,8 +137,6 @@ class ReportStep extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -231,8 +218,6 @@ class ReportStep extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -31,6 +31,7 @@ use Filament\Forms\Components\MarkdownEditor;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -46,8 +47,6 @@ class Anime extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -56,8 +55,6 @@ class Anime extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -66,8 +63,6 @@ class Anime extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -76,18 +71,14 @@ class Anime extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.anime');
|
||||
return Heroicon::OutlinedTv;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -96,8 +87,6 @@ class Anime extends BaseResource
|
||||
|
||||
/**
|
||||
* Determine if the resource can globally search.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function canGloballySearch(): bool
|
||||
{
|
||||
@@ -114,8 +103,6 @@ class Anime extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -207,8 +194,6 @@ class Anime extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -254,8 +239,6 @@ class Anime extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -321,7 +304,7 @@ class Anime extends BaseResource
|
||||
|
||||
AttachAnimeResourceAction::make('attach-anime-streaming-resource')
|
||||
->label(__('filament.actions.models.wiki.attach_streaming_resource.name'))
|
||||
->icon(__('filament-icons.actions.anime.attach_streaming_resource'))
|
||||
->icon(Heroicon::OutlinedTv)
|
||||
->sites($streamingResourceSites),
|
||||
];
|
||||
}
|
||||
@@ -330,8 +313,6 @@ class Anime extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -18,8 +18,6 @@ class SynonymAnimeRelationManager extends SynonymRelationManager
|
||||
|
||||
/**
|
||||
* The index page of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
|
||||
@@ -18,8 +18,6 @@ class ThemeAnimeRelationManager extends ThemeRelationManager
|
||||
|
||||
/**
|
||||
* The index page of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
|
||||
@@ -24,6 +24,7 @@ use App\Models\Wiki\Anime\AnimeSynonym as SynonymModel;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
@@ -40,8 +41,6 @@ class Synonym extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -50,8 +49,6 @@ class Synonym extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -60,8 +57,6 @@ class Synonym extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -70,12 +65,10 @@ class Synonym extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.anime_synonyms');
|
||||
return Heroicon::OutlinedGlobeAlt;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -88,8 +81,6 @@ class Synonym extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -111,8 +102,6 @@ class Synonym extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -164,8 +153,6 @@ class Synonym extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -197,8 +184,6 @@ class Synonym extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -229,8 +214,6 @@ class Synonym extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -43,6 +43,7 @@ use Filament\Schemas\Components\Tabs\Tab;
|
||||
use Filament\Schemas\Components\Utilities\Get;
|
||||
use Filament\Schemas\Components\Utilities\Set;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Filters\Filter;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Tables\Table;
|
||||
@@ -62,8 +63,6 @@ class Theme extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -72,8 +71,6 @@ class Theme extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -82,8 +79,6 @@ class Theme extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -92,18 +87,14 @@ class Theme extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.anime_themes');
|
||||
return Heroicon::OutlinedListBullet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the title for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitle(?Model $record): ?string
|
||||
{
|
||||
@@ -112,8 +103,6 @@ class Theme extends BaseResource
|
||||
|
||||
/**
|
||||
* Determine if the resource can globally search.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function canGloballySearch(): bool
|
||||
{
|
||||
@@ -157,8 +146,6 @@ class Theme extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -277,8 +264,6 @@ class Theme extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -356,8 +341,6 @@ class Theme extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -398,8 +381,6 @@ class Theme extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -39,6 +39,7 @@ use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Components\Utilities\Get;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Filters\Filter;
|
||||
use Filament\Tables\Table;
|
||||
@@ -57,8 +58,6 @@ class Entry extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -67,8 +66,6 @@ class Entry extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -77,8 +74,6 @@ class Entry extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -87,18 +82,14 @@ class Entry extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.anime_theme_entries');
|
||||
return Heroicon::OutlinedListBullet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the title for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitle(?Model $record): ?string
|
||||
{
|
||||
@@ -111,8 +102,6 @@ class Entry extends BaseResource
|
||||
|
||||
/**
|
||||
* Determine if the resource can globally search.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function canGloballySearch(): bool
|
||||
{
|
||||
@@ -146,8 +135,6 @@ class Entry extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -265,8 +252,6 @@ class Entry extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -311,8 +296,6 @@ class Entry extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -371,8 +354,6 @@ class Entry extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -26,6 +26,7 @@ use Filament\Forms\Components\MarkdownEditor;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -40,8 +41,6 @@ class Artist extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -50,8 +49,6 @@ class Artist extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -60,8 +57,6 @@ class Artist extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -70,18 +65,14 @@ class Artist extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.artists');
|
||||
return Heroicon::OutlinedUserCircle;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the resource can globally search.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function canGloballySearch(): bool
|
||||
{
|
||||
@@ -98,8 +89,6 @@ class Artist extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -108,8 +97,6 @@ class Artist extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -159,8 +146,6 @@ class Artist extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -203,8 +188,6 @@ class Artist extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -238,8 +221,6 @@ class Artist extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@ use Filament\Actions\ActionGroup;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -36,8 +37,6 @@ class Audio extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -46,8 +45,6 @@ class Audio extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -56,8 +53,6 @@ class Audio extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -66,12 +61,10 @@ class Audio extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.audios');
|
||||
return Heroicon::OutlinedSpeakerWave;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -84,8 +77,6 @@ class Audio extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -94,8 +85,6 @@ class Audio extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -121,8 +110,6 @@ class Audio extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -155,8 +142,6 @@ class Audio extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -217,8 +202,6 @@ class Audio extends BaseResource
|
||||
* Get the table actions available for the resource.
|
||||
*
|
||||
* @return array<int, ActionGroup|\Filament\Actions\Action>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getTableActions(): array
|
||||
{
|
||||
@@ -243,8 +226,6 @@ class Audio extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -24,6 +24,7 @@ use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Components\Utilities\Set;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -39,8 +40,6 @@ class ExternalResource extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -49,8 +48,6 @@ class ExternalResource extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -59,8 +56,6 @@ class ExternalResource extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -69,12 +64,10 @@ class ExternalResource extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.external_resources');
|
||||
return Heroicon::OutlinedLink;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -87,8 +80,6 @@ class ExternalResource extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -97,8 +88,6 @@ class ExternalResource extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -158,8 +147,6 @@ class ExternalResource extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -188,8 +175,6 @@ class ExternalResource extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -229,8 +214,6 @@ class ExternalResource extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -20,8 +20,6 @@ class ListExternalResources extends BaseListResources
|
||||
* Get the header actions available.
|
||||
*
|
||||
* @return \Filament\Actions\Action[]
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@ use App\Models\Wiki\Group as GroupModel;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -30,8 +31,6 @@ class Group extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -40,8 +39,6 @@ class Group extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -50,8 +47,6 @@ class Group extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -60,12 +55,10 @@ class Group extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.groups');
|
||||
return Heroicon::OutlinedFolderOpen;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -78,8 +71,6 @@ class Group extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -88,8 +79,6 @@ class Group extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -133,8 +122,6 @@ class Group extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -162,8 +149,6 @@ class Group extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -180,8 +165,6 @@ class Group extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -18,8 +18,6 @@ class ThemeGroupRelationManager extends ThemeRelationManager
|
||||
|
||||
/**
|
||||
* The index page of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@ use Filament\Infolists\Components\ImageEntry;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Columns\ImageColumn;
|
||||
use Filament\Tables\Columns\Layout\Stack;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
@@ -40,8 +41,6 @@ class Image extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -50,8 +49,6 @@ class Image extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -60,8 +57,6 @@ class Image extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -70,12 +65,10 @@ class Image extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.images');
|
||||
return Heroicon::OutlinedPhoto;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -88,8 +81,6 @@ class Image extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -98,8 +89,6 @@ class Image extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -131,8 +120,8 @@ class Image extends BaseResource
|
||||
ImageColumn::make(ImageModel::ATTRIBUTE_PATH)
|
||||
->label(__('filament.fields.image.image.name'))
|
||||
->disk(Config::get('image.disk'))
|
||||
->width(100)
|
||||
->height(150),
|
||||
->imageWidth(100)
|
||||
->imageHeight(150),
|
||||
]),
|
||||
])
|
||||
->contentGrid([
|
||||
@@ -143,8 +132,6 @@ class Image extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -174,8 +161,6 @@ class Image extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -233,8 +218,6 @@ class Image extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -17,6 +17,7 @@ use App\Models\Wiki\Series as SeriesModel;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -31,8 +32,6 @@ class Series extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -41,8 +40,6 @@ class Series extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -51,8 +48,6 @@ class Series extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -61,18 +56,14 @@ class Series extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.series');
|
||||
return Heroicon::OutlinedFolder;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the resource can globally search.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function canGloballySearch(): bool
|
||||
{
|
||||
@@ -89,8 +80,6 @@ class Series extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -99,8 +88,6 @@ class Series extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -144,8 +131,6 @@ class Series extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -173,8 +158,6 @@ class Series extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -191,8 +174,6 @@ class Series extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@ use App\Models\Wiki\Song as SongModel;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -33,8 +34,6 @@ class Song extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -43,8 +42,6 @@ class Song extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -53,8 +50,6 @@ class Song extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -63,18 +58,14 @@ class Song extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.songs');
|
||||
return Heroicon::OutlinedMusicalNote;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the resource can globally search.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function canGloballySearch(): bool
|
||||
{
|
||||
@@ -91,8 +82,6 @@ class Song extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -101,8 +90,6 @@ class Song extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -135,8 +122,6 @@ class Song extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -161,8 +146,6 @@ class Song extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -193,8 +176,6 @@ class Song extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@ use App\Models\Wiki\Song\Membership as MembershipModel;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -34,8 +35,6 @@ class Membership extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -44,8 +43,6 @@ class Membership extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -54,8 +51,6 @@ class Membership extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -64,18 +59,14 @@ class Membership extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.memberships');
|
||||
return Heroicon::OutlinedListBullet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -108,8 +99,6 @@ class Membership extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -161,8 +150,6 @@ class Membership extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -194,8 +181,6 @@ class Membership extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -210,8 +195,6 @@ class Membership extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -26,6 +26,7 @@ use App\Models\Wiki\Song\Performance as PerformanceModel;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -42,8 +43,6 @@ class Performance extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -52,8 +51,6 @@ class Performance extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -62,8 +59,6 @@ class Performance extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -72,18 +67,14 @@ class Performance extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.performances');
|
||||
return Heroicon::OutlinedMusicalNote;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -122,8 +113,6 @@ class Performance extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -193,8 +182,6 @@ class Performance extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -244,8 +231,6 @@ class Performance extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -260,8 +245,6 @@ class Performance extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -20,8 +20,6 @@ class ListPerformances extends BaseListResources
|
||||
* Get the header actions available.
|
||||
*
|
||||
* @return \Filament\Actions\Action[]
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@@ -18,8 +18,6 @@ class ThemeSongRelationManager extends ThemeRelationManager
|
||||
|
||||
/**
|
||||
* The index page of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
|
||||
@@ -21,6 +21,7 @@ use App\Models\Wiki\Studio as StudioModel;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -35,8 +36,6 @@ class Studio extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -45,8 +44,6 @@ class Studio extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -55,8 +52,6 @@ class Studio extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -65,12 +60,10 @@ class Studio extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.studios');
|
||||
return Heroicon::OutlinedBuildingOffice;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -83,8 +76,6 @@ class Studio extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -93,8 +84,6 @@ class Studio extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -137,8 +126,6 @@ class Studio extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -166,8 +153,6 @@ class Studio extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -200,8 +185,6 @@ class Studio extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -36,6 +36,7 @@ use Filament\Infolists\Components\IconEntry;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Tables\Table;
|
||||
@@ -52,8 +53,6 @@ class Video extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -62,8 +61,6 @@ class Video extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -72,8 +69,6 @@ class Video extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -82,12 +77,10 @@ class Video extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.videos');
|
||||
return Heroicon::OutlinedVideoCamera;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -100,8 +93,6 @@ class Video extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -110,8 +101,6 @@ class Video extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -209,8 +198,6 @@ class Video extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -279,8 +266,6 @@ class Video extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -356,8 +341,6 @@ class Video extends BaseResource
|
||||
*
|
||||
* @param array<int, ActionGroup|\Filament\Actions\Action>|null $actionsIncludedInGroup
|
||||
* @return array<int, ActionGroup|\Filament\Actions\Action>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getBulkActions(?array $actionsIncludedInGroup = []): array
|
||||
{
|
||||
@@ -374,8 +357,6 @@ class Video extends BaseResource
|
||||
* Get the table actions available for the resource.
|
||||
*
|
||||
* @return array<int, ActionGroup|\Filament\Actions\Action>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getTableActions(): array
|
||||
{
|
||||
@@ -400,8 +381,6 @@ class Video extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, \Filament\Resources\Pages\PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -23,6 +23,7 @@ use Filament\Resources\Pages\Page;
|
||||
use Filament\Resources\Pages\PageRegistration;
|
||||
use Filament\Resources\RelationManagers\RelationGroup;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -37,8 +38,6 @@ class Script extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
@@ -47,8 +46,6 @@ class Script extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
@@ -57,8 +54,6 @@ class Script extends BaseResource
|
||||
|
||||
/**
|
||||
* The logical group associated with the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationGroup(): string
|
||||
{
|
||||
@@ -67,12 +62,10 @@ class Script extends BaseResource
|
||||
|
||||
/**
|
||||
* The icon displayed to the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getNavigationIcon(): string
|
||||
public static function getNavigationIcon(): Heroicon
|
||||
{
|
||||
return __('filament-icons.resources.video_scripts');
|
||||
return Heroicon::OutlinedDocumentText;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -85,8 +78,6 @@ class Script extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the title attribute for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRecordTitleAttribute(): string
|
||||
{
|
||||
@@ -95,8 +86,6 @@ class Script extends BaseResource
|
||||
|
||||
/**
|
||||
* The form to the actions.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -127,8 +116,6 @@ class Script extends BaseResource
|
||||
|
||||
/**
|
||||
* Get the infolist available for the resource.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
@@ -142,8 +129,6 @@ class Script extends BaseResource
|
||||
* Get the relationships available for the resource.
|
||||
*
|
||||
* @return array<int, RelationGroup|class-string<\Filament\Resources\RelationManagers\RelationManager>>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getRelations(): array
|
||||
{
|
||||
@@ -187,8 +172,6 @@ class Script extends BaseResource
|
||||
* Get the table actions available for the resource.
|
||||
*
|
||||
* @return array<int, ActionGroup|\Filament\Actions\Action>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getTableActions(): array
|
||||
{
|
||||
@@ -213,8 +196,6 @@ class Script extends BaseResource
|
||||
* Get the pages available for the resource.
|
||||
*
|
||||
* @return array<string, PageRegistration>
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public static function getPages(): array
|
||||
{
|
||||
|
||||
@@ -39,8 +39,6 @@ class AnimeStreamingResourceTab extends BaseTab
|
||||
|
||||
/**
|
||||
* Get the displayable name of the tab.
|
||||
*
|
||||
* @noinspection PhpMissingParentCallCommonInspection
|
||||
*/
|
||||
public function getLabel(): string
|
||||
{
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user