create map for rahdari point
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphTo;
|
||||
|
||||
class PointFile extends Model
|
||||
{
|
||||
@@ -25,13 +26,15 @@ class PointFile extends Model
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'path'
|
||||
'path',
|
||||
'point_fileable_id',
|
||||
'point_fileable_type',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the owning point_fileable model.
|
||||
*/
|
||||
public function point_fileable()
|
||||
public function point_fileable(): MorphTo
|
||||
{
|
||||
return $this->morphTo();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user