PHP code example of ecoleplus / filament-subs

1. Go to this page and download the library: Download ecoleplus/filament-subs 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/ */

    

ecoleplus / filament-subs example snippets


return [
    "currency" => " MAD",
    "model" => "App\\Models\\User",
];

use EcolePlus\FilamentSubscription\FilamentSubscriptionPlugin;

...
return $panel
    ->plugins([
        FilamentSubscriptionPlugin::make(),
    ]);

use EcolePlus\FilamentSubscription\Traits\PlanSubscriptions;

class User extends Authenticatable
{
    use PlanSubscriptions;
}
bash
php artisan vendor:publish --tag="filament-subscriptions-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-subscriptions-config"
bash
php artisan vendor:publish --tag="filament-subscriptions-views"