added auth events
This commit is contained in:
parent
d15677c2ac
commit
823296e977
28
app/Events/Auth/Attempting.php
Normal file
28
app/Events/Auth/Attempting.php
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events\Auth;
|
||||||
|
|
||||||
|
use App\Abstracts\Event;
|
||||||
|
|
||||||
|
class Attempting extends Event
|
||||||
|
{
|
||||||
|
public $alias;
|
||||||
|
|
||||||
|
public $company_id;
|
||||||
|
|
||||||
|
public $protocol;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param $alias
|
||||||
|
* @param $company_id
|
||||||
|
* @param $protocol
|
||||||
|
*/
|
||||||
|
public function __construct($alias, $company_id = null, $protocol = 'basic')
|
||||||
|
{
|
||||||
|
$this->alias = $alias;
|
||||||
|
$this->company_id = $company_id;
|
||||||
|
$this->protocol = $protocol;
|
||||||
|
}
|
||||||
|
}
|
28
app/Events/Auth/Authenticated.php
Normal file
28
app/Events/Auth/Authenticated.php
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events\Auth;
|
||||||
|
|
||||||
|
use App\Abstracts\Event;
|
||||||
|
|
||||||
|
class Authenticated extends Event
|
||||||
|
{
|
||||||
|
public $alias;
|
||||||
|
|
||||||
|
public $company_id;
|
||||||
|
|
||||||
|
public $protocol;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param $alias
|
||||||
|
* @param $company_id
|
||||||
|
* @param $protocol
|
||||||
|
*/
|
||||||
|
public function __construct($alias, $company_id = null, $protocol = 'basic')
|
||||||
|
{
|
||||||
|
$this->alias = $alias;
|
||||||
|
$this->company_id = $company_id;
|
||||||
|
$this->protocol = $protocol;
|
||||||
|
}
|
||||||
|
}
|
28
app/Events/Auth/Failed.php
Normal file
28
app/Events/Auth/Failed.php
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events\Auth;
|
||||||
|
|
||||||
|
use App\Abstracts\Event;
|
||||||
|
|
||||||
|
class Failed extends Event
|
||||||
|
{
|
||||||
|
public $alias;
|
||||||
|
|
||||||
|
public $company_id;
|
||||||
|
|
||||||
|
public $protocol;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param $alias
|
||||||
|
* @param $company_id
|
||||||
|
* @param $protocol
|
||||||
|
*/
|
||||||
|
public function __construct($alias, $company_id = null, $protocol = 'basic')
|
||||||
|
{
|
||||||
|
$this->alias = $alias;
|
||||||
|
$this->company_id = $company_id;
|
||||||
|
$this->protocol = $protocol;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user