Skip to content

Add teams functionality to laravel users

Notifications You must be signed in to change notification settings

fullystudios/laravelteams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Teams Package

What is this?

This is a laravel package that adds team functionality for users in laravel.

Functionality - in progress

  • A logged in user can create a new team
  • A logged in user can modify its' own teams
  • A logged in user gets a notification when invited to a team
  • A logged in user can accept a team invitation
  • A logged in user can decline a team invitation
  • A team owner can delete a team

Assumptions of application logic

This package assumes that you have not heavily modified laravels basic Auth scaffolding. This package also creates several tables in your database. These are: teams, invitations …

Installation

Package should be available on packagist shortly

  1. Include the UserTeams trait in your User model.

Testing

Run ../../../vendor/bin/phpunit from project root.

Gotchas

None reported yet.

Scopes

I have added a notInTeam($team) scope to the user trait. It is tested, but something seems a bit off.

About

Add teams functionality to laravel users

Resources

Stars

Watchers

Forks

Packages

No packages published