1. Go to this page and download the library: Download runcmf/runcli library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
comment index
$table->binary('regip', 16)->default('');//->index('regip');
$table->binary('lastip', 16)->default('');//->index('lastip');
and add in `up` section
DB::statement('CREATE INDEX regip_idx ON '.DB::getTablePrefix().'users (regip(16));');
DB::statement('CREATE INDEX lastip_idx ON '.DB::getTablePrefix().'users (lastip(16));');
and add in `down` section
DB::schema()->table('users', function($table) {
$table->dropIndex('regip_idx');
});
DB::schema()->table('users', function($table) {
$table->dropIndex('lastip_idx');
});