PHP code example of satheez / laravel-message-contracts
1. Go to this page and download the library: Download satheez/laravel-message-contracts 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/ */
satheez / laravel-message-contracts example snippets
use Satheez\MessageContracts\Contracts\MessageContract;
final class UserRegisteredV1Message extends MessageContract
{
public static function contract(): string
{
return 'user.registered';
}
public static function version(): int
{
return 1;
}
public static function rules(): array
{
return [
'user_id' => ['