for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Schema;
class CreateJwtClaimsTable extends Migration
{
/**
* @var string $tableName - Table name.
*/
protected $tableName;
* Initialise the migration.
public function __construct()
$this->tableName = Config::get('jwt.claim_table_name');
}
* Run the migrations.
*
* @return void
public function up()
Schema::create($this->tableName, function (Blueprint $table) {
create()
Illuminate\Support\Facades\Schema
createFreshMockInstance()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
$table->increments('id');
$table->string('subject')->unsigned();
$table->string('audience')->unsigned();
$table->string('jwt_id')->index();
$table->timestamps();
});
* Reverse the migrations.
public function down()
Schema::drop($this->tableName);
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.