更新代码
This commit is contained in:
25
app/Models/SellerLessonLog.php
Normal file
25
app/Models/SellerLessonLog.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\User;
|
||||
use RuLong\Order\Models\Order;
|
||||
|
||||
class SellerLessonLog extends Model
|
||||
{
|
||||
|
||||
public function lesson()
|
||||
{
|
||||
return $this->belongsTo(SellerLesson::class)->withDefault();
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class)->withDefault();
|
||||
}
|
||||
|
||||
public function order()
|
||||
{
|
||||
return $this->belongsTo(Order::class)->withDefault();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user