feat: promotions added

This commit is contained in:
2025-11-25 15:49:24 +03:30
parent cc916c30cc
commit 8e5ecd3898
4 changed files with 178 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Promotion extends Model
{
protected $fillable = [
'type', 'title', 'subtitle', 'image', 'action_text',
'url_myket', 'url_bazzar', 'url_google_play', 'url_site',
'is_active', 'priority', 'start_at', 'end_at'
];
protected $casts = [
'is_active' => 'boolean',
'start_at' => 'datetime',
'end_at' => 'datetime'
];
}