Home

Awesome

Messenger Faker Commands

Latest Version on Packagist Total Downloads Tests StyleCI License


Preview

This package is an addon for rtippin/messenger

It is NOT advised to install this in a production app.

Features:


Installation

Via Composer

$ composer require rtippin/messenger-faker --dev

Config

Defaults

'paths' => [
    'images' => storage_path('faker/images'),
    'documents' => storage_path('faker/documents'),
    'audio' => storage_path('faker/audio'),
    'videos' => storage_path('faker/videos'),
],

'default_image_url' => 'https://source.unsplash.com/random',

'enable_bot' => true,

To override the file paths, please publish our config and edit accordingly

$ php artisan vendor:publish --tag=messenger-faker

Commands


php artisan messenger:faker:knock {thread?}


php artisan messenger:faker:message {thread?} | --count=5 | --delay=2 | --admins | --silent


php artisan messenger:faker:react {thread?} | --count=5 | --messages=5 | --delay=1 | --admins | --silent


php artisan messenger:faker:system {thread?} | --type= | --count=1 | --delay=2 | --admins | --silent


php artisan messenger:faker:image {thread?} | --count=1 | --delay=2 | --admins | --local | --url= | --silent


php artisan messenger:faker:document {thread?} | --count=1 | --delay=2 | --admins | --url= | --silent


php artisan messenger:faker:audio {thread?} | --count=1 | --delay=2 | --admins | --url= | --silent


php artisan messenger:faker:video {thread?} | --count=1 | --delay=2 | --admins | --url= | --silent


php artisan messenger:faker:random {thread?} | --count=5 | --delay=2 | --admins | --silent


php artisan messenger:faker:read {thread?} | --admins


php artisan messenger:faker:typing {thread?} | --admins


php artisan messenger:faker:unread {thread?} | --admins


FakerBot