Rework frontend

This commit is contained in:
F4ilji
2025-04-02 18:09:54 +05:00
parent 49072e50c7
commit bd3a4408b1
197 changed files with 9715 additions and 6664 deletions
-9
View File
@@ -23,15 +23,6 @@ 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',