increments('id'); $table->string('name', 60); $table->string('address')->nullable(); $table->string('latitude', 15)->nullable(); $table->string('longitude', 15)->nullable(); $table->unsignedInteger('creator_id'); $table->timestamps(); $table->foreign('creator_id')->references('id')->on('users')->onDelete('restrict'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('outlets'); } }