Skip to content

Commit

Permalink
Update Pages to reflect configured resource class name (#20)
Browse files Browse the repository at this point in the history
* Update ListMails.php

* udpate all resources to reflect config
  • Loading branch information
Skullbock authored Jan 22, 2025
1 parent 64018f5 commit f359031
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/Resources/EventResource/Pages/ListEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@

class ListEvents extends ListRecords
{
protected static string $resource = EventResource::class;
public static function getResource(): string
{
return config('filament-mails.resources.mail', EventResource::class);
}

public function getTitle(): string
{
Expand Down
5 changes: 4 additions & 1 deletion src/Resources/EventResource/Pages/ViewEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@

class ViewEvent extends ViewRecord
{
protected static string $resource = EventResource::class;
public static function getResource(): string
{
return config('filament-mails.resources.mail', EventResource::class);
}
}
5 changes: 4 additions & 1 deletion src/Resources/MailResource/Pages/ListMails.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@

class ListMails extends ListRecords
{
protected static string $resource = MailResource::class;
public static function getResource(): string
{
return config('filament-mails.resources.mail', MailResource::class);
}

public function getTitle(): string
{
Expand Down
5 changes: 4 additions & 1 deletion src/Resources/MailResource/Pages/ViewMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@

class ViewMail extends ViewRecord
{
protected static string $resource = MailResource::class;
public static function getResource(): string
{
return config('filament-mails.resources.mail', MailResource::class);
}
}

0 comments on commit f359031

Please sign in to comment.