Skip to content

Package requires a few changes to get working #10

@PaulMcML

Description

@PaulMcML

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions