fire event before authorizing menu item
This commit is contained in:
20
app/Events/Menu/ItemAuthorizing.php
Normal file
20
app/Events/Menu/ItemAuthorizing.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Menu;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class ItemAuthorizing extends Event
|
||||
{
|
||||
public $item;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $item
|
||||
*/
|
||||
public function __construct($item)
|
||||
{
|
||||
$this->item = $item;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user