mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-06-15 05:22:44 +01:00
22 lines
489 B
PHP
22 lines
489 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Actions\Jetstream;
|
|
|
|
use App\Exceptions\MovedToApiException;
|
|
use App\Models\Organization;
|
|
use App\Models\User;
|
|
use Laravel\Jetstream\Contracts\AddsTeamMembers;
|
|
|
|
class AddOrganizationMember implements AddsTeamMembers
|
|
{
|
|
/**
|
|
* Add a new team member to the given team.
|
|
*/
|
|
public function add(User $owner, Organization $organization, string $email, ?string $role = null): void
|
|
{
|
|
throw new MovedToApiException;
|
|
}
|
|
}
|