Fix: AI Blog Assistant retry logic and Subdomain routing for Akademi
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('blog_topics', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->text('context')->nullable(); // Additional context/prompt for AI
|
||||
$table->string('status')->default('active'); // active, passive
|
||||
$table->timestamp('last_used_at')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('blog_topics');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class BlogTopicSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$topics = [
|
||||
'Yapay Zeka ve İş Dünyası',
|
||||
'Mobil Uygulama Geliştirme Trendleri',
|
||||
'E-Ticaretin Geleceği',
|
||||
'Siber Güvenlik Önlemleri',
|
||||
'Blockchain Teknolojisi',
|
||||
'Bulut Bilişim Avantajları',
|
||||
'Nesnelerin İnterneti (IoT) Uygulamaları',
|
||||
'Veri Analitiği ve Büyük Veri',
|
||||
'Dijital Dönüşüm Stratejileri',
|
||||
'Web Yazılım Teknolojileri'
|
||||
];
|
||||
|
||||
foreach ($topics as $topic) {
|
||||
DB::table('blog_topics')->insert([
|
||||
'name' => $topic,
|
||||
'context' => 'Trunçgil Teknoloji çözümlerine ve uzmanlığına vurgu yapın.',
|
||||
'status' => 'active',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user