generated from filamentphp/plugin-skeleton
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
To get this package working I've had to do a fair amount of work
SendInviteNotification.php uses App\Mail\SendinviteMail - nowhere in the documentation does it state you need to create this.
Once mails are sent, the form itself will not work unless you add middleware to the panel, so in FilamentInviteServiceProvider.php you need to add the EncryptCookies and StartSession middleware
use Illuminate\Cookie\Middleware\EncryptCookies;
use Illuminate\Session\Middleware\StartSession;
public function panel(Panel $panel): Panel
{
return $panel
->id('invite')
->path('invite')
->middleware([
EncryptCookies::class,
StartSession::class,
])
->pages([
Accept::class,
]);
}
Once the password is set, Accept.php redirects to a hardcoded route of 'filament.admin.pages.dashboard' . Not everyone's panel will be called 'admin'. This needs to be configurable.
If I get chance I'll put together a pull request.
Metadata
Metadata
Assignees
Labels
No labels