PHP code example of olivernybroe / lighthouse-math-scalars
1. Go to this page and download the library: Download olivernybroe/lighthouse-math-scalars 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/ */
olivernybroe / lighthouse-math-scalars example snippets
use OliverNybroe\LighthouseMathScalars\Casts\BigInteger as BigIntegerCast;
use Brick\Math\BigInteger;
use Illuminate\Foundation\Auth\User as Authenticatable;
/**
* @property BigInteger $gold
*/
class User extends Authenticatable
{
protected $casts = [
'gold' => BigIntegerCast::class,
];