PHP code example of digikraaft / laravel-dashboard-stripe-balances-tile
1. Go to this page and download the library: Download digikraaft/laravel-dashboard-stripe-balances-tile 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/ */
digikraaft / laravel-dashboard-stripe-balances-tile example snippets
// in config/dashboard.php
'tiles' => [
/**
* Stripe configuration settings
*/
'stripe' => [
'secret_key' => env('STRIPE_SECRET'),
'balances' => [
/**
* How often should the data be refreshed in seconds
*/
'refresh_interval_in_seconds' => 1800,
],
],
],
// in app/Console/Kernel.php
use Digikraaft\StripeBalancesTile\FetchBalancesDataFromStripeApi;
protected function schedule(Schedule $schedule)
{
$schedule->command(FetchBalancesDataFromStripeApi::class)->twiceDaily();
}