更新代码
This commit is contained in:
19
app/Models/Advert.php
Normal file
19
app/Models/Advert.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use RuLong\Panel\Models\Storage;
|
||||
|
||||
class Advert extends Model
|
||||
{
|
||||
|
||||
public function storage()
|
||||
{
|
||||
return $this->belongsTo(Storage::class)->withDefault();
|
||||
}
|
||||
|
||||
public function seller()
|
||||
{
|
||||
return $this->belongsTo(Seller::class)->withDefault();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user