PHP code example of joydeep-bhowmik / laravel-point-vault
1. Go to this page and download the library: Download joydeep-bhowmik/laravel-point-vault 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/ */
joydeep-bhowmik / laravel-point-vault example snippets
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use JoydeepBhowmik\LaravelPointVault\Traits\HasPoints;
class User extends Model
{
use HasPoints;
}
$balance = $user->getCurrentBalance();
echo $balance; // Outputs the user's current point balance