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;
//...
}
Try to check the tests folder for more details about the usage: click here
Contract/Interface: Link
Contract/Interface: Link
Contract/Interface: Link