We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92bc20e commit ea42237Copy full SHA for ea42237
src/FlexibleContentBlockPagesPanel.php
@@ -22,10 +22,10 @@ public function panel(Panel $panel): Panel
22
*
23
* Another option if you are not already extending from another class, is to extend this class and overwrite the functions.
24
*/
25
- public static function configurePanel(Panel $panel, string $id): Panel
+ public static function configurePanel(Panel $panel, ?string $id=null): Panel
26
{
27
return $panel
28
- ->id($id)
+ ->id($id ?? static::ID)
29
->path(FilamentFlexibleContentBlockPages::config()->getPanelPath())
30
->middleware(FilamentFlexibleContentBlockPages::config()->getPanelMiddleware())
31
->authMiddleware(FilamentFlexibleContentBlockPages::config()->getPanelAuthMiddleware())
0 commit comments