]> BookStack Code Mirror - bookstack/blob - app/Auth/SocialAccount.php
fix image delete confirm text
[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  */
11 class SocialAccount extends Model implements Loggable
12 {
13
14     protected $fillable = ['user_id', 'driver', 'driver_id', 'timestamps'];
15
16     public function user()
17     {
18         return $this->belongsTo(User::class);
19     }
20
21     /**
22      * @inheritDoc
23      */
24     public function logDescriptor(): string
25     {
26         return "{$this->driver}; {$this->user->logDescriptor()}";
27     }
28 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.