for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateHitsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('hits', 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->integer('link_id')->unsigned()->nullable();
$table->string('ip')->nullable();
$table->string('user_agent')->nullable();
$table->timestamps();
$table->foreign('link_id')
->references('id')->on('links')
->onDelete('cascade');
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('hits');
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.