12
common/Auth/Events/SocialConnected.php
Executable file
12
common/Auth/Events/SocialConnected.php
Executable file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Common\Auth\Events;
|
||||
|
||||
use App\Models\User;
|
||||
|
||||
class SocialConnected
|
||||
{
|
||||
public function __construct(public User $user, public string $socialName)
|
||||
{
|
||||
}
|
||||
}
|
||||
12
common/Auth/Events/SocialLogin.php
Executable file
12
common/Auth/Events/SocialLogin.php
Executable file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Common\Auth\Events;
|
||||
|
||||
use App\Models\User;
|
||||
|
||||
class SocialLogin
|
||||
{
|
||||
public function __construct(public User $user, public string $socialName)
|
||||
{
|
||||
}
|
||||
}
|
||||
21
common/Auth/Events/UserAvatarChanged.php
Executable file
21
common/Auth/Events/UserAvatarChanged.php
Executable file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Common\Auth\Events;
|
||||
|
||||
use App\Models\User;
|
||||
|
||||
class UserAvatarChanged
|
||||
{
|
||||
/**
|
||||
* @var User
|
||||
*/
|
||||
public $user;
|
||||
|
||||
/**
|
||||
* @param User $user
|
||||
*/
|
||||
public function __construct(User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
}
|
||||
12
common/Auth/Events/UserCreated.php
Executable file
12
common/Auth/Events/UserCreated.php
Executable file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Common\Auth\Events;
|
||||
|
||||
use App\Models\User;
|
||||
|
||||
class UserCreated
|
||||
{
|
||||
public function __construct(public User $user, public array $data)
|
||||
{
|
||||
}
|
||||
}
|
||||
15
common/Auth/Events/UsersDeleted.php
Executable file
15
common/Auth/Events/UsersDeleted.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Common\Auth\Events;
|
||||
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
|
||||
class UsersDeleted
|
||||
{
|
||||
public Collection $users;
|
||||
|
||||
public function __construct(Collection $users)
|
||||
{
|
||||
$this->users = $users;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user