<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; class CreateRentalsTable extends Migration { /* * Run the migrations. * * @return void */ public function up() { /* * Table: rentals */ Schema::create('rentals', function ($table) { $table->increments('id'); $table->integer('owner_id')->nullable(); $table->integer('house_id')->nullable(); $table->string('name', 50)->nullable(); $table->string('email', 50)->nullable(); $table->string('phone', 255)->nullable(); $table->text('permanent_address')->nullable(); $table->string('father_name', 255)->nullable(); $table->string('contact_person', 255)->nullable(); $table->string('contact_phone', 255)->nullable(); $table->string('photo', 255)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('rentals'); } }