PHP code example of mapo-89 / core-panel

1. Go to this page and download the library: Download mapo-89/core-panel 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/ */

    

mapo-89 / core-panel example snippets


$result = app(\CorePanel\Support\Socialite\MicrosoftAccessTokenResolver::class)
    ->forUser($user);

if ($result['token'] !== null) {
    // Use this token for the next Graph request.
}

// config/core-panel.php
'database' => [
    'timestamp_tz_conversion' => [
        'legacy_timezone' => env('CORE_PANEL_TIMESTAMP_LEGACY_TIMEZONE', 'Europe/Berlin'),
    ],
],

// config/core-panel.php
'database' => [
    'timestamp_tz_conversion' => [
        'datasets' => [
            'central' => [
                'projects' => ['created_at', 'updated_at', 'deleted_at'],
                'appointments' => ['scheduled_for', 'cancelled_at', 'created_at', 'updated_at'],
            ],
        ],
    ],
],
bash
php artisan core:install