21 lines
331 B
PHP
21 lines
331 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class UserActivity extends Model
|
|
{
|
|
protected $table = 'user_activity';
|
|
|
|
public function photo()
|
|
{
|
|
return $this->belongsTo(Photo::class);
|
|
}
|
|
|
|
public function photoComment()
|
|
{
|
|
return $this->belongsTo(PhotoComment::class);
|
|
}
|
|
}
|