Use this shortcut to insert rows to the table:
use Abagayev\Laravel\MigrationShortcuts\Migrations\InsertRowsMigration;
class InsertRowsToTableMigration extends InsertRowsMigration
{
protected $table = 'table_name';
protected $rows = [
[
'column1' => 'value1',
'column2' => 'value2',
]
];
}You can override getRows() method, if you need to add some values dynamically.
Please note, that there is no rollback strategy for insert migration, so you should implement down() method by yourself, if you need it.