PHP code example of webbycrown / mcp-dashboard-studio

1. Go to this page and download the library: Download webbycrown/mcp-dashboard-studio 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/ */

    

webbycrown / mcp-dashboard-studio example snippets


use Laravel\Passport\HasApiTokens;

class User extends Authenticatable
{
    use HasApiTokens, HasFactory, Notifiable;
}

// config/auth.php
'guards' => [
    'web' => ['driver' => 'session', 'provider' => 'users'],
    'api' => ['driver' => 'passport', 'provider' => 'users'],
],

// bootstrap/app.php
->withMiddleware(function (Middleware $middleware): void {
    $middleware->trustProxies(at: '*');
})
bash
php artisan install:api --passport
php artisan passport:client
bash
php artisan vendor:publish --tag=mcp-dashboard-studio-config
php artisan vendor:publish --tag=mcp-dashboard-studio-assets
php artisan vendor:publish --tag=mcp-dashboard-studio-migrations
php artisan vendor:publish --tag=mcp-dashboard-studio-views

php artisan migrate
ini
APP_URL=https://your-public-domain.com
MCP_DATA_MODE=database
MCP_DB_ENABLED=true
MCP_DB_CONNECTION=mysql
MCP_OAUTH_ENABLED=true
MCP_OAUTH_LOGIN_ROUTES=true
MCP_REQUIRE_ADMIN_CONSENT=false
bash
php artisan vendor:publish --tag=mcp-dashboard-studio-assets
bash
php artisan vendor:publish --tag=mcp-dashboard-studio-views
bash
composer migrate
php artisan passport:install --uuids
php artisan passport:keys
bash
php artisan vendor:publish --tag=mcp-dashboard-studio-assets
ini
MCP_LOGGING_ENABLED=true