Event Handlers
Event handlers are classes that carry the logic of the events defined in previous sections
Defining Handlers
<?php
/**
* This file was auto-generated.
*/
namespace App\Handlers;
use Yuga\EventHandlers\HandlerInterface;
class WhenAuthenticated implements HandlerInterface
{
/**
* Event Handler Logic here
* @param \Yuga\Events\Dispatcher $event
* @return mixed
*/
public function handle($event)
{
return null;
}
/**
* Your Event Handler Logic here
* @param \Yuga\Events\Dispatcher $event
* @return mixed
*/
public function isAuthentic($event)
{
return null;
}
}Last updated