pr deneme
This commit is contained in:
@@ -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'],
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
Reference in New Issue
Block a user