1 | <?php |
||
7 | class DiscussUser extends Model |
||
8 | { |
||
9 | use Countable; |
||
10 | |||
11 | /** |
||
12 | * The attributes that are mass assignable. |
||
13 | * |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $fillable = [ |
||
17 | 'user_id', |
||
18 | 'conversation_id' |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * The "booting" method of the model. |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | protected static function boot() |
||
35 | |||
36 | /** |
||
37 | * Return the count cache configuration. |
||
38 | * |
||
39 | * @return array |
||
40 | */ |
||
41 | public function countCaches(): array |
||
47 | |||
48 | /** |
||
49 | * Get the user that owns the user. |
||
50 | * |
||
51 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
52 | */ |
||
53 | public function user() |
||
57 | |||
58 | /** |
||
59 | * Get the conversation that owns the user. |
||
60 | * |
||
61 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
62 | */ |
||
63 | public function conversation() |
||
67 | } |
||
68 |