Laravel: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 10: | Zeile 10: | ||
cd $BASE | cd $BASE | ||
composer require laravel/ui | composer require laravel/ui | ||
composer require spatie/laravel-permission | |||
php artisan ui bootstrap --auth | php artisan ui bootstrap --auth | ||
dbtool create-db-and-user app$PROJ $PROJ "$PASSW" | dbtool create-db-and-user app$PROJ $PROJ "$PASSW" |
Version vom 28. Oktober 2023, 19:08 Uhr
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
composer require spatie/laravel-permission
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