39 lines
639 B
PHP
39 lines
639 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PointFile extends Model
|
|
{
|
|
/**
|
|
* The attributes that should be hidden for arrays.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $hidden = [
|
|
'id',
|
|
'point_fileable_id',
|
|
'point_fileable_type',
|
|
'created_at',
|
|
'updated_at'
|
|
];
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'path'
|
|
];
|
|
|
|
/**
|
|
* Get the owning point_fileable model.
|
|
*/
|
|
public function point_fileable()
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
}
|