electrik / teamwork
Electrik fork of mpociot/teamwork — user/team associations with invites for Laravel 10–13.
Fund package maintenance!
11.0.0
2026-08-21 09:16 UTC
Requires
- php: ^8.2
- illuminate/auth: ^10.0|^11.0|^12.0|^13.0
- illuminate/contracts: ^10.0|^11.0|^12.0|^13.0
- illuminate/database: ^10.0|^11.0|^12.0|^13.0
- illuminate/support: ^10.0|^11.0|^12.0|^13.0
Requires (Dev)
- mockery/mockery: ^1.6
- orchestra/testbench: ^8.0|^9.0|^10.0|^11.0
- phpunit/phpunit: ^10.0|^11.0|^12.0
Replaces
- mpociot/teamwork: 11.0.0
This package is not auto-updated.
Last update: 2026-08-22 07:43:00 UTC
README
Fork of mpociot/teamwork maintained for Electrik.
Why this fork exists
Upstream mpociot/teamwork ^10 only allows Laravel 9–12. Electrik targets current Laravel (including 13) and Livewire 4. This fork:
- Declares support for Laravel 10–13 via
illuminate/*constraints - Keeps the
Mpociot\Teamworknamespace (drop-in API) - Registers a proper
teamworkcontainer singleton - Modernizes the default migration (
id()/foreignId(), unique membership)
Livewire is not a dependency of Teamwork; Electrik’s Livewire UI sits on top of this package.
Install
composer require electrik/teamwork
Until Packagist is published, path/VCS install from this repo:
{
"repositories": [
{
"type": "path",
"url": "../teamwork",
"options": { "symlink": true }
}
],
"require": {
"electrik/teamwork": "@dev"
}
}
Then:
php artisan vendor:publish --provider="Mpociot\Teamwork\TeamworkServiceProvider"
php artisan migrate
Add Mpociot\Teamwork\Traits\UserHasTeams to your User model and set teamwork.team_model to your Team class (Electrik uses Electrik\Models\Team).
License
MIT — same as upstream Teamwork.