]> BookStack Code Mirror - bookstack/blob - app/Auth/SocialAccount.php
Added latest activity into users list view
[bookstack] / app / Auth / SocialAccount.php
1 <?php namespace BookStack\Auth;
2
3 use BookStack\Interfaces\Loggable;
4 use BookStack\Model;
5
6 /**
7  * Class SocialAccount
8  * @property string $driver
9  * @property User $user
10  * @package BookStack\Auth
11  */
12 class SocialAccount extends Model implements Loggable
13 {
14
15     protected $fillable = ['user_id', 'driver', 'driver_id', 'timestamps'];
16
17     public function user()
18     {
19         return $this->belongsTo(User::class);
20     }
21
22     /**
23      * @inheritDoc
24      */
25     public function logDescriptor(): string
26     {
27         return "{$this->driver}; {$this->user->logDescriptor()}";
28     }
29 }