Skip to content

Commit

Permalink
Merge pull request #13 from ARCANEDEV/update-morphobale_users
Browse files Browse the repository at this point in the history
Adding morphable users
  • Loading branch information
arcanedev-maroc authored Feb 26, 2018
2 parents 803cae9 + a37e90d commit 8fd3283
Show file tree
Hide file tree
Showing 24 changed files with 692 additions and 1,090 deletions.
11 changes: 7 additions & 4 deletions _docs/2-Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ return [
*/

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

'prefix' => null,
],

/* -----------------------------------------------------------------
Expand All @@ -31,16 +33,17 @@ return [
'users' => [
'table' => 'users',
'model' => App\User::class,
'morph' => 'participable',
],

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

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

'messages' => [
Expand Down
Loading

0 comments on commit 8fd3283

Please sign in to comment.