One Hat Cyber Team
Your IP :
216.73.217.126
Server IP :
185.33.55.30
Server :
Linux cl30.webspacecontrol.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.1.34
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
esetkocsi
/
public_html
/
database
/
migrations
/
View File Name :
2024_11_11_134917_create_blogs_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateBlogsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('blogs', function (Blueprint $table) { $table->id(); $table->string('title'); $table->string('slug'); $table->string('subtitle'); $table->text('short_description'); $table->text('long_description'); $table->boolean('is_visible')->default(false); $table->unsignedBigInteger('thumbnail_image')->nullable(); $table->foreign('thumbnail_image', 'fk_blogs_media') ->references('id') ->on('media') ->onUpdate('cascade') ->onDelete('set null'); $table->json('images')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('blogs'); } }