2018-10-09 22:16:43 +01:00
|
|
|
<?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);
|
|
|
|
}
|
2018-10-14 20:08:31 +01:00
|
|
|
|
|
|
|
public function user()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(User::class);
|
|
|
|
}
|
2018-10-09 22:16:43 +01:00
|
|
|
}
|