1. Go to this page and download the library: Download deskhq/laravel-worktree library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
deskhq / laravel-worktree example snippets
'env' => [
'APP_PORT' => '{{port.app}}',
'VITE_PORT' => '{{port.vite}}',
'FORWARD_DB_PORT' => '{{port.db}}',
'FORWARD_REDIS_PORT' => '{{port.redis}}',
'COMPOSE_PROJECT_NAME' => '{{project}}',
'APP_URL' => 'http://localhost:{{port.app}}',
'REVERB_PORT' => 8080, // container-internal, deliberately not offset
'COMPOSE_PROFILES' => '', // and the services this worktree never starts
'MAIL_MAILER' => 'log',
'SCOUT_DRIVER' => 'collection',
'MEILISEARCH_HOST' => '',
],
interface Runtime
{
public function boot(Identity $worktree, string $environmentFile, ?string $halted = null, ?string $remedy = null): void;
public function stop(string $project, ?string $directory = null): bool;
public function teardown(string $project, ?string $directory = null): TeardownResult;
public function allocatesPorts(): bool;
public function shell(): Shell;
}
['host' => 'bin/worktree-playwright {{path}}',
'allow_failure' => true,
'degrade' => 'Playwright is not fully installed; tests/Browser will not run here'],