for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use App\Lib\Slime\Interfaces\DatabaseHelpers\DbHelperInterface;
use Illuminate\Database\Capsule\Manager as Capsule;
use \Illuminate\Database\Schema\Blueprint as Blueprint;
class M1477152226CreateUsersTable implements DbHelperInterface
{
public function run()
$tableName = 'users';
Capsule::schema()->dropIfExists($tableName);
Capsule::schema()->create($tableName, function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('surname');
$table->string('email');
$table->tinyInteger('age');
$table->timestamps();
});
}