⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
makarnacimmix.xyz
/
database
/
migrations
/
View File Name :
2021_02_13_104245_create_user_role_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUserRoleTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('user_role', function (Blueprint $table) { $table->unsignedBigInteger('user_id'); $table->unsignedBigInteger('role_id'); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade')->onUpdate('no action'); $table->foreign('role_id')->references('id')->on('roles')->onDelete('cascade')->onUpdate('no action'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('user_role'); } }