Laravel
Links
Projekt einrichten
PROJ=langutor
PASSW=topsecret
BASE=/home/ws/php/$PROJ
cd $(basename $BASE)
composer create-project laravel/laravel $PROJ
cd $BASE
composer require laravel/ui
php artisan ui bootstrap --auth
dbtool create-db-and-user app$PROJ $PROJ "$PASSW"
sed -i -e "s/DB_DATABASE=.*/DB_DATABASE=app$PROJ" \
-e "s/DB_USERNAME=.*/DB_USERNAME=$PROJ" \
-e "s/DB_PASSWORD=.*/DB_USERNAME=$PASSWD" .env
Projekt aktualisieren
npm install
npm run dev