# fluent-community/trunk/Modules/Migrations/Http/Controllers/MigrationController.php

FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS &amp; Online Courses, version trunk. 33 lines.

- Page: https://pluginprobe.com/plugins/fluent-community/trunk/code/Modules/Migrations/Http/Controllers/MigrationController.php
- Raw: https://pluginprobe.com/plugins/fluent-community/trunk/raw/Modules/Migrations/Http/Controllers/MigrationController.php
- Modified: 2025-01-21T12:48:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-community/trunk/code/Modules/Migrations/Http/Controllers/MigrationController.php#L10-L20`.

```php
<?php

namespace FluentCommunity\Modules\Migrations\Http\Controllers;

use FluentCommunity\App\Http\Controllers\Controller;
use FluentCommunity\Framework\Http\Request\Request;

class MigrationController extends Controller
{
    public function getAvailableMigrations(Request $request)
    {
        $migrations = [];

        if (defined('BP_PLATFORM_VERSION')) {
            $migrations[] = [
                'key'   => 'buddyboss',
                'title' => 'BuddyBoss',
                'logo'  => FLUENT_COMMUNITY_PLUGIN_URL . 'assets/images/brands/bboss_logo.png'
            ];
        }  else if (defined('BP_PLUGIN_DIR')) {
            $migrations[] = [
                'key'   => 'buddypress',
                'title' => 'BuddyPress',
                'logo'  => FLUENT_COMMUNITY_PLUGIN_URL . 'assets/images/brands/buddypress.svg'
            ];
        }

        return [
            'migrations' => $migrations
        ];
    }
}

```
