Aesthetically clean up migrations
MODIFY
database/migrations/2014_10_12_100000_create_password_resets_table.php
database/migrations/2014_10_12_100000_create_password_resets_table.php
@@ -4,15 +4,8 @@ use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
-class CreatePasswordResetsTable extends Migration
-{
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
+class CreatePasswordResetsTable extends Migration {
+ public function up() {
Schema::create('password_resets', function (Blueprint $table) {
$table->string('email')->index();
$table->string('token');
@@ -20,13 +13,7 @@ class CreatePasswordResetsTable extends Migration
});
}
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
+ public function down() {
Schema::dropIfExists('password_resets');
}
}

MODIFY
database/migrations/2017_07_23_112354_create_earnings_table.php
database/migrations/2017_07_23_112354_create_earnings_table.php
@@ -5,8 +5,7 @@ use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEarningsTable extends Migration {
- public function up()
- {
+ public function up() {
Schema::create('earnings', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id')->unsigned();

Aesthetically clean up migrations