for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMpesaStkRequestsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create(
'mpesa_stk_requests',
function (Blueprint $table) {
$table->increments('id');
$table->string('phone');
$table->double('amount', 10, 2);
$table->string('reference');
$table->string('description');
$table->string('status')->default('Requested');
$table->boolean('complete')->default(true);
$table->string('MerchantRequestID')->unique();
$table->string('CheckoutRequestID')->unique();
$table->unsignedInteger('user_id')->nullable();
$table->timestamps();
}
);
* Reverse the migrations.
public function down()
Schema::dropIfExists('mpesa_stk_requests');