for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
namespace GiveBlood\Modules\Bank\Database\Migrations;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBanksTable extends Migration
{
/**
* @var \Illuminate\Database\Schema\Builder
*/
protected $schema;
* Migration constructor.
public function __construct()
$this->schema = app('db')->connection()->getSchemaBuilder();
}
* Run the migrations.
*
* @return void
public function up()
$this->schema->create(
'banks', function (Blueprint $table) {
$table->uuid('id')->unique()->primary();
$table->string('name');
$table->string('email');
$table->string('url');
$table->string('phone');
$table->string('location');
$table->timestamps();
$table->softDeletes();
);
* Reverse the migrations.
public function down()
$this->schema->drop('banks');