codeplus / core /app /Models /Activity.php
Softin Trading
Initial commit from Github
52d9fb0
Raw History Blame Contribute Delete
390 Bytes
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Activity extends Model
{
public function product()
{
return $this->belongsTo(Product::class);
}
public function user()
{
return $this->belongsTo(User::class);
}
public function reviewer()
{
return $this->belongsTo(Reviewer::class, 'reviewer_id');
}
}