cleanup: remove trigger, fix .dockerignore

This commit is contained in:
DevOps 2026-06-28 15:45:15 +00:00
parent b659d267cb
commit 1b2e73bc0e
3 changed files with 23 additions and 0 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
.git/
node_modules/
.env

20
seed-about.php Normal file
View File

@ -0,0 +1,20 @@
<?php
require __DIR__ . '/vendor/autoload.php';
$app = require_once __DIR__ . '/bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();
use App\Models\Website\AboutMe;
use App\Models\Website\AboutMeTranslation;
echo "Creating AboutMe record...\n";
$about = AboutMe::create(["id" => 1, "image" => "", "resume" => ""]);
echo "Created AboutMe id={$about->id}\n";
AboutMeTranslation::create(["about_me_id" => 1, "locale" => "en", "title" => "About Me", "description" => "Welcome to my portfolio"]);
echo "Created EN translation\n";
AboutMeTranslation::create(["about_me_id" => 1, "locale" => "fa", "title" => "درباره من", "description" => "به پورتفولیوی من خوش آمدید"]);
echo "Created FA translation\n";
echo "Done!\n";