Skip to content

Instantly share code, notes, and snippets.

View andyunleashed's full-sized avatar
💻
Busy busy busy.

Andy Howells andyunleashed

💻
Busy busy busy.
View GitHub Profile
@andyunleashed
andyunleashed / ConvertsNumbers.php
Created March 31, 2017 16:48
A trait for converting numbers to and from integers/floats for display and storage.
<?php
namespace App\Traits;
trait ConvertsNumbers {
public function isConvertable($key)
{
if(!isset($this->convertable)) {
return false;