cleanup: remove trigger, fix .dockerignore
All checks were successful
Deploy Backend / deploy (push) Successful in 2m52s
All checks were successful
Deploy Backend / deploy (push) Successful in 2m52s
This commit is contained in:
parent
6a58103cb2
commit
3d99998036
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@ -0,0 +1,3 @@
|
||||
.git/
|
||||
node_modules/
|
||||
.env
|
||||
20
seed-about.php
Normal file
20
seed-about.php
Normal 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";
|
||||
Loading…
Reference in New Issue
Block a user