#!/bin/bash
#
# Run this script after first cloning the repository to be ready to use the sail command.
#
# taken from https://laravel.com/docs/11.x/sail#installing-composer-dependencies-for-existing-projects
docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v "$(pwd):/var/www/html" \
    -w /var/www/html \
    laravelsail/php83-composer:latest \
    composer install --ignore-platform-reqs
ln -s ./vendor/bin/sail sail