Files
filament/bin/setup-playground.sh
T
Hanasa fdf6517612 Feat/wrapping code editor (#18478)
* feat: code editor wrapping

* fix: setup playground

* clean up

---------

Co-authored-by: Dan Harrin <git@danharrin.com>
2025-12-02 21:09:41 +00:00

32 lines
558 B
Bash
Executable File

#!/usr/bin/env bash
if [ -d "./playground" ];
then
echo "Playground already setup."
exit
fi
echo "Cloning repository..."
git clone git@github.com:filamentphp/demo.git -b 4.x playground &> /dev/null
echo "Configuring application..."
cd playground
rm composer.json
mv composer-local.json composer.json
composer config repositories.0 path ../packages/*
composer install
cp .env.example .env
php artisan key:generate
touch database/database.sqlite
php artisan migrate --seed
if [ -x "$(command -v valet)" ];
then
valet link filament
fi
cd ..