更新代码
This commit is contained in:
21
app/Models/UserInfo.php
Normal file
21
app/Models/UserInfo.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\User;
|
||||
|
||||
class UserInfo extends Model
|
||||
{
|
||||
const UPDATED_AT = null;
|
||||
|
||||
protected $primaryKey = 'user_id';
|
||||
|
||||
protected $dates = [
|
||||
'subscribe_at',
|
||||
];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user