diff --git a/src/Jetstream.php b/src/Jetstream.php index 9406ca842..fe1cac5a5 100644 --- a/src/Jetstream.php +++ b/src/Jetstream.php @@ -256,6 +256,19 @@ public static function newTeamModel() return new $model; } + /** + * Specify the team model that should be used by Jetstream. + * + * @param string $model + * @return static + */ + public static function useTeamModel(string $model) + { + static::$teamModel = $model; + + return new static; + } + /** * Get the name of the team model used by the application. * @@ -266,6 +279,19 @@ public static function membershipModel() return static::$membershipModel; } + /** + * Specify the membership model that should be used by Jetstream. + * + * @param string $model + * @return static + */ + public static function useMembershipModel(string $model) + { + static::$membershipModel = $model; + + return new static; + } + /** * Register a class / callback that should be used to create teams. *