提交代码
This commit is contained in:
16
app/Models/CardActiveLog.php
Normal file
16
app/Models/CardActiveLog.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
class CardActiveLog extends Model
|
||||
{
|
||||
public function card()
|
||||
{
|
||||
return $this->belongsTo(Card::class, 'card_id', 'id');
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user