PHP code example of byrcsc / laravel-cartographer

1. Go to this page and download the library: Download byrcsc/laravel-cartographer 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/ */

    

byrcsc / laravel-cartographer example snippets


'groups' => [
    'billing' => [App\Models\Invoice::class, App\Models\Payment::class],
    'catalog' => [App\Models\Product::class, App\Models\Category::class],
],
bash
php artisan cartographer:erd
bash
php artisan vendor:publish --tag=cartographer-config
bash
php artisan cartographer:erd
bash
php artisan cartographer:erd --only=Order,Invoice --stdout
php artisan cartographer:erd --except=Telemetry
bash
npm i -D @mermaid-js/mermaid-cli
php artisan cartographer:erd --format=svg --theme=dracula
bash
php artisan cartographer:check