1. Go to this page and download the library: Download ashfaq1701/laravel-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/ */
public function run()
{
$this->call(UserTableSeeder::class);
$this->call(ChannelsUsersTableSeeder::class);
}
...
use Ashfaq1701\LaravelChat\Traits\Chattable;
class User extends Authenticatable
{
use Chattable;
...
class VerifyCsrfToken extends BaseVerifier
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
'/uploads/file'
];
}