Skip to content

Commit ea42237

Browse files
committed
Improve panel
1 parent 92bc20e commit ea42237

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FlexibleContentBlockPagesPanel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ public function panel(Panel $panel): Panel
2222
*
2323
* Another option if you are not already extending from another class, is to extend this class and overwrite the functions.
2424
*/
25-
public static function configurePanel(Panel $panel, string $id): Panel
25+
public static function configurePanel(Panel $panel, ?string $id=null): Panel
2626
{
2727
return $panel
28-
->id($id)
28+
->id($id ?? static::ID)
2929
->path(FilamentFlexibleContentBlockPages::config()->getPanelPath())
3030
->middleware(FilamentFlexibleContentBlockPages::config()->getPanelMiddleware())
3131
->authMiddleware(FilamentFlexibleContentBlockPages::config()->getPanelAuthMiddleware())

0 commit comments

Comments
 (0)