PHP code example of gnello / laravel-mattermost-driver
1. Go to this page and download the library: Download gnello/laravel-mattermost-driver 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/ */
gnello / laravel-mattermost-driver example snippets
use \Gnello\Mattermost\Laravel\Facades\Mattermost;
//Retrieve the driver
$driver = Mattermost::server('default');
//Retrieve the User Model
$userModel = $driver->getUserModel();
//Retrieve the User Model directly (on the default server)
$userModel = Mattermost::getUserModel();
php artisan vendor:publish
'providers' => [
//..
Gnello\Mattermost\Laravel\MattermostServiceProvider::class,
],