This package assumes you have already installed Jetstream and your Team
and User
Models are in the app/Models
directory and namespace.
Install this package via Composer by adding the package and the repository link:
"require": {
"truefrontier/jetstream-team-invites": "dev-main",
},
// ...
"repositories": [
{
"type":"vcs",
"url": "https://github.com/truefrontier/jetstream-team-invites"
}
],
Then run:
composer update
Publish the config options:
php artisan vendor:publish --provider="Truefrontier\JetstreamTeamInvites\JetstreamTeamInvitesServiceProvider" --force
Run the DB migration:
php artisan migrate
Lastly, add the Invitation Trait to your Team and User Model:
use Truefrontier\JetstreamTeamInvites\Traits\HasJetstreamTeamInvites;
class User
{
use HasJetstreamTeamInvites;
Enabling this package disables automatic team creation for new users by default. To enable it, look in the config/truefrontier_team_invites.php
config file.
The MIT License (MIT). Please see License File for more information.