Files
hoshal-market/app/Models/Collection.php
Mekan1206 6ea6701963 Refactor and localize settings and resources
- Updated GeneralSettings page to include localized labels and structured sections for better organization.
- Enhanced CarouselSlide, Category, Collection, and Product resources with localized model labels and improved form/table configurations.
- Modified HomeController to utilize query builder for better performance and added collection items retrieval.
- Updated views to reflect localized settings and improved layout for collections and footer.
- Adjusted timezone and locale settings in app configuration for better regional support.
2026-06-04 22:15:18 +05:00

17 lines
343 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Collection extends Model
{
protected $fillable = ['title', 'subtitle', 'order', 'is_active'];
public function collectionItems(): HasMany
{
return $this->hasMany(CollectionItem::class);
}
}