更新代码
This commit is contained in:
16
app/Models/Param.php
Normal file
16
app/Models/Param.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use RuLong\Panel\Models\Storage;
|
||||
|
||||
class Param extends Model
|
||||
{
|
||||
|
||||
use SoftDeletes;
|
||||
public function storage()
|
||||
{
|
||||
return $this->hasOne(Storage::class, 'id', 'value')->withDefault();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user