for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace FondBot\Conversation\Concerns;
use FondBot\Events\MessageReceived;
trait Authorization
{
/**
* Determine if intent passes the authorization check.
*
* @param MessageReceived $message
* @return bool
*/
public function passesAuthorization(MessageReceived $message): bool
if (method_exists($this, 'authorize')) {
return $this->authorize($message);
}
return true;