feat: add action to slider

This commit is contained in:
2025-09-27 00:45:33 +03:30
parent 876768ad68
commit 84aad9b8e0
4 changed files with 93 additions and 2 deletions
+5 -1
View File
@@ -6,5 +6,9 @@
class Slider extends Model
{
protected $fillable = ['title', 'description', 'url'];
protected $fillable = ['title', 'description', 'url','action'];
protected $casts = [
'action' => 'array', // auto convert JSON to array
];
}