From 0c02b6d24eeb37a5b805ce745fdaebe4b858112c Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 9 Nov 2017 13:25:44 -0800 Subject: [PATCH 1/2] =?UTF-8?q?Use=20=E2=80=94no-dev=20flag=20in=20upgrade?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upgrade.php b/upgrade.php index c08c39cd79..f96036cd77 100644 --- a/upgrade.php +++ b/upgrade.php @@ -106,7 +106,7 @@ echo "--------------------------------------------------------\n\n"; if (file_exists('composer.phar')) { echo "-- Local composer.phar detected, so we'll use that.\n\n"; $composer_dump = shell_exec('php composer.phar dump'); - $composer = shell_exec('php composer.phar install --prefer-source'); + $composer = shell_exec('php composer.phar install --no-dev --prefer-source'); } else { echo "-- We couldn't find a local composer.phar - trying globally.\n\n"; From 012afe99e2b4b3f899b24e2496a8910579a325cc Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 9 Nov 2017 13:27:58 -0800 Subject: [PATCH 2/2] Set purchase date to date type --- app/Models/License.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Models/License.php b/app/Models/License.php index 11f1326aa9..049675d42a 100755 --- a/app/Models/License.php +++ b/app/Models/License.php @@ -22,7 +22,14 @@ class License extends Depreciable protected $injectUniqueIdentifier = true; use ValidatingTrait; - protected $dates = ['deleted_at']; + // We set these as protected dates so that they will be easily accessible via Carbon + protected $dates = [ + 'created_at', + 'updated_at', + 'deleted_at', + 'purchase_date' + ]; + public $timestamps = true;