remove white space and carriage returns from version

This commit is contained in:
David Bomba 2020-10-27 07:46:06 +11:00
parent 8f53424017
commit 0df672baaa
2 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class VersionCheck implements ShouldQueue
*/
public function handle()
{
$version_file = file_get_contents(config('ninja.version_url'));
$version_file = trim(file_get_contents(config('ninja.version_url')));
info("latest version = {$version_file}");

View File

@ -97,6 +97,8 @@ class Company extends BaseModel
'google_analytics_key',
'client_can_register',
'enable_shop_api',
'invoice_task_timelog',
'auto_start_tasks',
];
protected $hidden = [