You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the routes to the PanelProvider using the `routes()` method, like this:
65
65
66
66
```php
67
67
use Vormkracht10\FilamentMails\Facades\FilamentMails;
68
68
69
-
// Basic usage - uses default Filament panel path and name
70
-
FilamentMails::routes();
71
-
72
-
// Prefix routes with path and/or name
73
-
FilamentMails::routes(
74
-
path: 'panel-path',
75
-
name: 'panel-id'
76
-
);
69
+
public function panel(Panel $panel): Panel
70
+
{
71
+
return $panel
72
+
->routes(FilamentMails::routes());
73
+
}
77
74
```
78
75
79
-
> [!NOTE]
80
-
> By default, the path will be set to your Filament panel's path and the name will be 'filament.' followed by your panel's ID. You only need to customize these if you want different values.
81
-
82
76
Then add the plugin to your `PanelProvider`
83
77
84
78
```php
@@ -91,7 +85,7 @@ public function panel(Panel $panel): Panel
91
85
}
92
86
```
93
87
94
-
### Tenant middleware / route protection
88
+
### Tenant middleware and route protection
95
89
96
90
If you want to protect the mail routes with your (tenant) middleware, you can do so by adding the routes to the `tenantRoutes`:
0 commit comments