Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateContactsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('contacts', function (Blueprint $table) {
- $table->increments('id');
- $table->timestamps();
- $table->string('first_name');
- $table->string('last_name');
- $table->string('email');
- $table->string('job_title');
- $table->string('city');
- $table->string('country');
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('contacts');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement