- 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.
17 lines
343 B
PHP
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);
|
|
}
|
|
}
|