PHP code example of egarabini / laravel-rocket-chat
1. Go to this page and download the library: Download egarabini/laravel-rocket-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/ */
egarabini / laravel-rocket-chat example snippets
\Timetorock\LaravelRocketChat\Provider\LaravelRocketChatServiceProvider::class
$userClient = new \Timetorock\LaravelRocketChat\Client\UserClient();
$userClient->create(new \Timetorock\LaravelRocketChat\Models\User([
'email'=> '[email protected]',
'name' => 'test',
'password' => '12345',
'username' => 'test',
]))
php artisan vendor:publish --tag=config