#!/bin/bash # Lenverge Smart Artisan Wrapper # This script executes 'artisan' with the project-specific PHP version. # Find the php wrapper script which contains all the logic. PHP_WRAPPER="/usr/local/bin/php" # Check if an artisan file exists in the current directory before trying to run it. if [ -f "artisan" ]; then exec "$PHP_WRAPPER" "artisan" "$@" else echo "Error: 'artisan' file not found in the current directory." >&2 exit 1 fi