blue-twilight/app/UploadPhoto.php
2016-09-02 21:27:50 +01:00

34 lines
537 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
class UploadPhoto extends Model
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'upload_id', 'photo_id'
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
];
public function photo()
{
return $this->belongsTo(Photo::class);
}
}