feat: Add Logos page, refactor Testimonials to RelationManager, and improve designs

This commit is contained in:
Muhammet Güler
2026-02-08 04:54:32 +03:00
parent 33c1ffe779
commit 177ebff119
24 changed files with 863 additions and 573 deletions
+5
View File
@@ -80,6 +80,11 @@ class Page extends Model
return $this->hasMany(Page::class, 'parent_id');
}
public function testimonials()
{
return $this->hasMany(Testimonial::class);
}
/**
* Get the header template for the page.
*/
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Testimonial extends Model
{
protected $fillable = [
'page_id',
'name',
'position',
'content',
'rating',
'avatar',
'is_active',
'sort_order',
];
public function page()
{
return $this->belongsTo(Page::class);
}
}