1. Go to this page and download the library: Download topoff/laravel-messenger library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
topoff / laravel-messenger example snippets
use Topoff\Messenger\Contracts\MessageReceiverInterface;
class User extends Model implements MessageReceiverInterface
{
public function getEmail(): string { /* ... */ }
public function getResourceUri(): string { /* ... */ }
public function setEmailToInvalid(bool $isManualCall = true): void { /* ... */ }
public function getEmailIsValid(): bool { /* ... */ }
public function preferredLocale(): string { /* ... */ }
}