fixed mobile
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
use Illuminate\Support\Facades\Process;
|
||||
|
||||
class AppVersion
|
||||
{
|
||||
public static function gitHash(): string
|
||||
{
|
||||
return trim(Process::run('git rev-parse --short HEAD')->output()) ?: 'unknown';
|
||||
}
|
||||
|
||||
public static function gitBranch(): string
|
||||
{
|
||||
return trim(Process::run('git rev-parse --abbrev-ref HEAD')->output()) ?: 'unknown';
|
||||
}
|
||||
|
||||
public static function buildDate(): string
|
||||
{
|
||||
return now()->format('Y-m-d H:i:s');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user