Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
feat: isRunningBundled
  • Loading branch information
SRWieZ committed Mar 10, 2025
commit 15d04bd9705abad0349ace2453ac0a72d5964536
6 changes: 6 additions & 0 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Native\Laravel;

use Native\Laravel\Client\Client;
use Phar;

class App
{
Expand Down Expand Up @@ -57,4 +58,9 @@ public function clearRecentDocuments(): void
{
$this->client->delete('app/recent-documents');
}

public function isRunningBundled(): bool
{
return Phar::running() !== '';
}
}
1 change: 1 addition & 0 deletions src/Facades/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* @method static void addRecentDocument(string $path)
* @method static array recentDocuments()
* @method static void clearRecentDocuments()
* @method static bool isRunningBundled()
*/
class App extends Facade
{
Expand Down
Loading