Rework frontend

This commit is contained in:
F4ilji
2025-03-23 00:38:16 +05:00
parent 17518ceed2
commit 49072e50c7
438 changed files with 14375 additions and 20015 deletions
+9
View File
@@ -23,6 +23,15 @@ class Page extends Model
return $this->morphOne(Seo::class, 'seoable');
}
public function getBreadcrumbs(string $url) : array
{
$path = ltrim(parse_url(route($url), PHP_URL_PATH), '/');
$page = self::where('path', '=', $path)->with('section.pages.section', 'section.mainSection')->first();
dd($page);
}
protected $casts = [
'content' => 'array',
'settings' => 'array',