1. Go to this page and download the library: Download mozex/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/ */
mozex / laravel-worktree example snippets
'herd' => env('WORKTREE_HERD', 'secure'),
'database' => [
'connections' => [
[
'connection' => null, // null is the app's default connection
'env' => 'DB_DATABASE', // the .env key holding this database's name
'name' => '{slug}', // the worktree database name
'test' => [
'env' => 'DB_DATABASE', // the phpunit.xml <env> key to rewrite
'name' => '{slug}_testing',
],
],
],
],