Changes
This commit is contained in:
@@ -4,6 +4,8 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphTo;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
||||
|
||||
class MainSlider extends Model
|
||||
{
|
||||
@@ -16,4 +18,11 @@ class MainSlider extends Model
|
||||
'settings' => 'array',
|
||||
'image' => 'array',
|
||||
];
|
||||
|
||||
public function slidable()
|
||||
{
|
||||
return $this->morphTo();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user