inital commit
This commit is contained in:
38
app/Models/PointFile.php
Normal file
38
app/Models/PointFile.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user