File size: 390 Bytes
52d9fb0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <?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');
}
}
|