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:
64
64
65
65
```php
66
-
use Backstage\FilamentMails\Facades\Mails;
66
+
use Backstage\Mails\Facades\Mails;
67
67
68
68
public function panel(Panel $panel): Panel
69
69
{
@@ -75,7 +75,7 @@ public function panel(Panel $panel): Panel
75
75
Then add the plugin to your `PanelProvider`
76
76
77
77
```php
78
-
use Backstage\FilamentMails\MailsPlugin;
78
+
use Backstage\Mails\MailsPlugin;
79
79
80
80
public function panel(Panel $panel): Panel
81
81
{
@@ -89,7 +89,7 @@ public function panel(Panel $panel): Panel
89
89
Using the `canManageMails()` method, you can define which users have access to the mail resources/pages. Here's a comprehensive example that includes additional logic for flexibility:
90
90
91
91
```php
92
-
use Backstage\FilamentMails\MailsPlugin;
92
+
use Backstage\Mails\MailsPlugin;
93
93
use Illuminate\Support\Facades\Auth;
94
94
95
95
$panel
@@ -121,8 +121,8 @@ This example demonstrates how to combine role-based and permission-based access
121
121
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