Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.26 KB

2-Configuration.md

File metadata and controls

55 lines (40 loc) · 1.26 KB

2. Configuration

Table of contents

  1. Installation and Setup
  2. Configuration
  3. Usage

After you've published the config file config/messenger.php, you can customize the settings :

<?php

return [

    /* -----------------------------------------------------------------
     |  Database
     | -----------------------------------------------------------------
     */

    'database' => [
        'connection' => env('DB_CONNECTION', 'mysql'),

        'prefix'     => null,
    ],

    /* -----------------------------------------------------------------
     |  Models
     | -----------------------------------------------------------------
     */

    'users' => [
        'table' => 'users',
        'model' => App\User::class,
        'morph' => 'participable',
    ],

    'discussions' => [
        'table' => 'discussions',
        'model' => Arcanedev\LaravelMessenger\Models\Discussion::class
    ],

    'participations' => [
        'table' => 'participations',
        'model' => Arcanedev\LaravelMessenger\Models\Participation::class,
    ],

    'messages' => [
        'table' => 'messages',
        'model' => Arcanedev\LaravelMessenger\Models\Message::class
    ],

];