add nova
This commit is contained in:
10
nova/src/Events/NovaServiceProviderRegistered.php
Normal file
10
nova/src/Events/NovaServiceProviderRegistered.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Laravel\Nova\Events;
|
||||
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
|
||||
class NovaServiceProviderRegistered
|
||||
{
|
||||
use Dispatchable;
|
||||
}
|
||||
29
nova/src/Events/ServingNova.php
Normal file
29
nova/src/Events/ServingNova.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Laravel\Nova\Events;
|
||||
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ServingNova
|
||||
{
|
||||
use Dispatchable;
|
||||
|
||||
/**
|
||||
* The request instance.
|
||||
*
|
||||
* @var \Illuminate\Http\Request
|
||||
*/
|
||||
public $request;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(Request $request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
}
|
||||
33
nova/src/Events/StartedImpersonating.php
Normal file
33
nova/src/Events/StartedImpersonating.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Laravel\Nova\Events;
|
||||
|
||||
class StartedImpersonating
|
||||
{
|
||||
/**
|
||||
* The impersonator user.
|
||||
*
|
||||
* @var \Illuminate\Contracts\Auth\Authenticatable
|
||||
*/
|
||||
public $impersonator;
|
||||
|
||||
/**
|
||||
* The impersonated user.
|
||||
*
|
||||
* @var \Illuminate\Contracts\Auth\Authenticatable
|
||||
*/
|
||||
public $impersonated;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param \Illuminate\Contracts\Auth\Authenticatable $impersonator
|
||||
* @param \Illuminate\Contracts\Auth\Authenticatable $impersonated
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($impersonator, $impersonated)
|
||||
{
|
||||
$this->impersonator = $impersonator;
|
||||
$this->impersonated = $impersonated;
|
||||
}
|
||||
}
|
||||
33
nova/src/Events/StoppedImpersonating.php
Normal file
33
nova/src/Events/StoppedImpersonating.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Laravel\Nova\Events;
|
||||
|
||||
class StoppedImpersonating
|
||||
{
|
||||
/**
|
||||
* The impersonator user.
|
||||
*
|
||||
* @var \Illuminate\Contracts\Auth\Authenticatable
|
||||
*/
|
||||
public $impersonator;
|
||||
|
||||
/**
|
||||
* The impersonated user.
|
||||
*
|
||||
* @var \Illuminate\Contracts\Auth\Authenticatable
|
||||
*/
|
||||
public $impersonated;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param \Illuminate\Contracts\Auth\Authenticatable $impersonator
|
||||
* @param \Illuminate\Contracts\Auth\Authenticatable $impersonated
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($impersonator, $impersonated)
|
||||
{
|
||||
$this->impersonator = $impersonator;
|
||||
$this->impersonated = $impersonated;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user