pr deneme

This commit is contained in:
Muhammet Güler
2026-02-03 14:20:36 +03:00
parent 74779ef2c8
commit dbd267ca17
2 changed files with 18 additions and 14 deletions
+18
View File
@@ -113,6 +113,24 @@ class PageSeeder extends Seeder
]
);
// 2.4 Banka Bilgilerimiz (Child of Kurumsal)
Page::updateOrCreate(
['slug' => 'banka-bilgilerimiz'],
[
'author_id' => $author->id,
'parent_id' => $corporate->id,
'title' => 'Banka Bilgilerimiz',
'excerpt' => 'Banka hesap bilgilerimiz',
'content' => '<p>Banka hesap bilgilerimiz burada yer alacaktır.</p>',
'template' => 'generic',
'status' => 'published',
'is_homepage' => false,
'show_in_menu' => true,
'sort_order' => 4,
'published_at' => now(),
]
);
// 3. Ürünlerimiz (Mega Menu Target)
Page::updateOrCreate(
['slug' => 'urunlerimiz'],
-14
View File
@@ -1,14 +0,0 @@
<?php
require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
use App\Models\Page;
$pages = Page::all();
foreach ($pages as $page) {
echo "ID: {$page->id} | Title: {$page->title} | Slug: {$page->slug} | Template: {$page->template}\n";
}