<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yaroslawww / laravel-cashier-subscription-pause example snippets
use CashierSubscriptionPause\Eloquent\UsesPauseCollection;
use CashierSubscriptionPause\Eloquent\WithPauseCollection;
class Subscription extends \Laravel\Cashier\Subscription implements WithPauseCollection {
use UsesPauseCollection;
protected $table = 'stripe_subscriptions';
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'quantity' => 'integer',
'pause_collection' => 'array',
];
}
namespace App\Providers;
use CashierSubscriptionPause\Listeners\CashierWebhookHandledEventListener;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
public function boot()
{
// ...
CashierWebhookHandledEventListener::deactivateListener();
}
}