From 19388701609d02579138ba64f86e06688a608fa4 Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Sun, 16 Jul 2023 13:29:08 +0800 Subject: [PATCH] patch seeding output --- composer.json | 2 +- seeds/PermissionSeeder.php | 4 +++- src/Support/Utils.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) 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)) {