PHP code example of zainmalik / billforge
1. Go to this page and download the library: Download zainmalik/billforge 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/ */
zainmalik / billforge example snippets
Route::get('/saas/premium-feature', [PremiumController::class, 'index'])
->middleware(['auth', 'subscription.access'])
->name('saas.feature');
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Zain\BillForge\Traits\HasSubscriptions;
class User extends Authenticatable
{
use HasSubscriptions;
// ...
}
bash
php artisan vendor:publish --provider="Zain\BillForge\BillForgeServiceProvider"
bash
php artisan migrate