diff --git a/composer.json b/composer.json index 2bcea88..5ffe5db 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "fleetbase/core-api", - "version": "1.1.3-alpha", + "version": "1.1.4-alpha", "description": "Core Framework and Resources for Fleetbase API", "keywords": [ "fleetbase", diff --git a/seeds/PermissionSeeder.php b/seeds/PermissionSeeder.php index 89281f8..a2c1f5f 100644 --- a/seeds/PermissionSeeder.php +++ b/seeds/PermissionSeeder.php @@ -223,6 +223,8 @@ public function run() */ public function output(string $line = ''): void { - echo $line . PHP_EOL; + if (app()->runningInConsole()) { + echo $line . PHP_EOL; + } } } diff --git a/src/Support/Utils.php b/src/Support/Utils.php index bb7e7ba..d61b2fe 100644 --- a/src/Support/Utils.php +++ b/src/Support/Utils.php @@ -1725,7 +1725,7 @@ public static function findPackageNamespace($path = null): ?string public static function findComposerPackagesWithKeyword($keyword = 'fleetbase-extension') { // Path to composer.lock file. - $filePath = './composer.lock'; + $filePath = base_path('composer.lock'); // Check if file exists. if (!file_exists($filePath)) {