33 lines
768 B
PHP
33 lines
768 B
PHP
<?php
|
|
|
|
namespace App\Models\Server;
|
|
|
|
use Actuallymab\LaravelComment\HasComments;
|
|
use App\Contracts\Logable;
|
|
use App\Contracts\Previewable;
|
|
use App\Http\Response\ResponseJson;
|
|
use App\Traits\Haslog;
|
|
use App\Traits\HasPreviews;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
|
|
class MerchantEvaluate extends Model implements Logable, Previewable
|
|
{
|
|
use HasComments, HasPreviews;
|
|
use ResponseJson;
|
|
use SoftDeletes;
|
|
|
|
protected $fillable = [];
|
|
protected $guarded = [];
|
|
public function primaryId(): string
|
|
{
|
|
return (string)$this->getAttribute('test_item_id');
|
|
}
|
|
|
|
public function evaluateList()
|
|
{
|
|
return $this->hasOne(EvaluateList::class, 'test_item_id', 'test_item_id');
|
|
}
|
|
}
|