PHP code example of bavyhappy / nova-cashier-overview-plan-details

1. Go to this page and download the library: Download bavyhappy/nova-cashier-overview-plan-details 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/ */

    

bavyhappy / nova-cashier-overview-plan-details example snippets


use Bavyhappy\NovaCashierOverviewPlanDetail;

// ...

public function fields(Request $request)
{
    return [
        ID::make()->sortable(),

        ...

        Subscription::make(),

        // if you want to display a specific subscription or multiple
        Subscription::make('a-fancy-subscription-name'),

        ...
    ];
}
bash
php artisan migrate
bash
php artisan vendor:publish --tag="cashier-overview-details-migrations"