diff --git a/app/Models/License.php b/app/Models/License.php index 11f1326aa..049675d42 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; diff --git a/upgrade.php b/upgrade.php index 653214b0d..07257043e 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";