PHP code example of luongolabs / block-migrate
1. Go to this page and download the library: Download luongolabs/block-migrate 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/ */
luongolabs / block-migrate example snippets
return [
'migrations_paths' => [
database_path('blocks'),
],
];
use LuongoLabs\BlockMigrate\Migrations\BlockMigration;
return new class extends BlockMigration
{
public function up(): void
{
}
public function down(): void
{
}
};
bash
php artisan vendor:publish --tag="block-migrate-config"