PHP code example of ncpd / nova-metabase

1. Go to this page and download the library: Download ncpd/nova-metabase 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/ */

    

ncpd / nova-metabase example snippets


use Ncpd\Metabase\Metabase;
// Inside your Nova resource...
public function cards(Request $request) { 
    return [ 
        (new Metabase(1))->width('full'), /* Replace 1 with your Metabase dashboard id */ 
    ]; 
}
bash
php artisan vendor:publish --provider=Ncpd\Metabase\CardServiceProvider