Skip to content

Instantly share code, notes, and snippets.

View patarok's full-sized avatar

Peter Patoschka patarok

  • Austria
View GitHub Profile
@patarok
patarok / .bashrc
Created December 29, 2025 10:46
Call php artisan from everywhere inside your project... add that to your .bashrc
# 1. Define the logic
find_artisan() {
local path=$(pwd)
while [[ "$path" != "" && ! -e "$path/artisan" ]]; do
path=${path%/*}
done
if [[ -e "$path/artisan" ]]; then
if [[ -e "$path/.env" ]]; then