Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.19 KB

README.md

File metadata and controls

57 lines (41 loc) · 1.19 KB

Custom Laravel Jetstream Team Invites

Prerequisites

This package assumes you have already installed Jetstream and your Team and User Models are in the app/Models directory and namespace.

Installation

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.

License

The MIT License (MIT). Please see License File for more information.