34 lines
606 B
PHP
34 lines
606 B
PHP
|
<?php
|
||
|
|
||
|
namespace App;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use Illuminate\Notifications\Notifiable;
|
||
|
|
||
|
class Upload extends Model
|
||
|
{
|
||
|
use Notifiable;
|
||
|
|
||
|
/**
|
||
|
* The attributes that are mass assignable.
|
||
|
*
|
||
|
* @var array
|
||
|
*/
|
||
|
protected $fillable = [
|
||
|
'is_completed', 'is_processing', 'number_photos', 'number_successful', 'number_failed'
|
||
|
];
|
||
|
|
||
|
/**
|
||
|
* The attributes that should be hidden for arrays.
|
||
|
*
|
||
|
* @var array
|
||
|
*/
|
||
|
protected $hidden = [
|
||
|
];
|
||
|
|
||
|
public function uploadPhotos()
|
||
|
{
|
||
|
return $this->hasMany(UploadPhoto::class);
|
||
|
}
|
||
|
}
|