mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
New Customer Satisfaction Feedback Module
This commit is contained in:
@@ -21,4 +21,21 @@ class QAUserAnswerSelected extends AbstractModel implements Documentable
|
||||
{
|
||||
return $this->morphMany(Document::class, 'owner');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo
|
||||
*/
|
||||
public function userSource(): BelongsTo
|
||||
{
|
||||
return $this->BelongsTo(QAUserSource::class, 'source_id', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo
|
||||
*/
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
return $this->BelongsTo(User::class, 'user_id', 'id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
|
||||
class QAUserSource extends AbstractModel
|
||||
{
|
||||
protected $table = 'qa_user_source';
|
||||
}
|
||||
Reference in New Issue
Block a user