Calculate Difference
if (! function_exists('calculatePercentage')) {
/**
* Calculates the percentage between the given values.
*
* @param int|string $previous
* @param int|string $current
*
if (! function_exists('calculatePercentage')) {
/**
* Calculates the percentage between the given values.
*
* @param int|string $previous
* @param int|string $current
*
If a nested array is passed into a Laravel Collection, by default these will be threaded as normal arrays.
However, that's not always the ideal case and it would be nice if we could have nested collections in a cleaner way.
This is where this macro comes in handy.
This was tested on:
This article will guide you thru running a production ready meteor.js app on Digital Ocean with Phusion Passenger and ngnix.
First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php