AnonSec Team
Server IP : 103.11.96.170  /  Your IP : 3.132.215.146
Web Server : Microsoft-IIS/10.0
System : Windows NT WIN-F6SLGVICLOP 10.0 build 17763 (Windows Server 2016) AMD64
User : elibrary.unsap.ac.id ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF
Directory (0777) :  D:/localhost/trash/database/migrations/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : D:/localhost/trash/database/migrations/2024_01_03_145522_create_addresses_table.php
<?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('addresses', function (Blueprint $table) {
            $table->id();
            $table->morphs('addressable');
            $table->string('province_id')->nullable();
            $table->string('province');
            $table->string('city_id')->nullable();
            $table->string('city');
            $table->string('district_id')->nullable();
            $table->string('district');
            $table->string('subdistrict_id')->nullable();
            $table->string('subdistrict');
            $table->string('postal_code');
            $table->string('street');
            $table->string('latitude');
            $table->string('longitude');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('addresses');
    }
};

AnonSec - 2021