Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.28 KB

3-Usage.md

File metadata and controls

46 lines (27 loc) · 1.28 KB

3. Usage

Table of contents

  1. Installation and Setup
  2. Configuration
  3. Usage

After publishing the package files, you need to update first the config/laravel-messenger.php config file to reference your User Model.

Don't forget to create a users table if you do not have one already.

Now you can run the php artisan migrate command to your database.

And add the Arcanedev\LaravelMessenger\Traits\Messagable trait to your User model like this:

<?php

namespace App;

use Arcanedev\LaravelMessenger\Traits\Messagable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable {
    use Messagable;
    
    //...
}

API

Try to check the tests folder for more details about the usage: click here

Discussions

Contract/Interface: Link

Participation

Contract/Interface: Link

Messages

Contract/Interface: Link