PHP code example of twopoint0 / reverb-chat
1. Go to this page and download the library: Download twopoint0/reverb-chat 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/ */
twopoint0 / reverb-chat example snippets
return [
'user_model' => App\Models\User::class,
'user_table' => 'users',
'api_prefix' => 'api/reverb-chat',
];
bash
php artisan vendor:publish --tag=reverb-chat-config
bash
php artisan migrate
bash
php artisan reverb:start
php artisan queue:work
http
POST /api/chat/user/{user_id}/message