Closed webnitros closed 9 months ago
due to the fact that there is no support for expanding your own page
now I had to use the following code
use App\Filament\Plugins\Logs\Pages\ViewLog;
use Filament\Panel;
use Saade\FilamentLaravelLog\FilamentLaravelLogPlugin;
class FilamentLaravelLogPluginExted extends FilamentLaravelLogPlugin
{
public function register(Panel $panel): void
{
if (! $this->isAuthorized()) {
return;
}
$panel
->pages([
ViewLog::class,
]);
}
}
namespace App\Filament\Plugins\Logs\Pages;
use BezhanSalleh\FilamentShield\Traits\HasPageShield;
class ViewLog extends \Saade\FilamentLaravelLog\Pages\ViewLog
{
use HasPageShield;
}
``
replaced by 65b81f138d87d3053131d97fb1ee29faadd962cc
Alternative solution for plugin extension
Improvement for using your page