When we change e.g name of migration file, we should execute the command below
$ composer dump-autoload
When we change e.g name of migration file, we should execute the command below
$ composer dump-autoload
script.sh
#!/bin/bash if [ "$(whoami)" != "root" ]; then echo "Start script as root!" exit 1 fi _PATH="$1" while [ -z "$_PATH" ]; do echo "Write path to Laravel folder!" read _PATH done _USER="$2" while [ -z "$_USER" ]; do echo "Write user name!" read _USER done chown -R $_USER:www-data $_PATH/./portal find $_PATH/./ -type f -exec chmod 664 {} \; find $_PATH/./ -type d -exec chmod 775 {} \; chgrp -R www-data $_PATH/storage $_PATH/bootstrap/cache chmod -R ug+rwx $_PATH/storage $_PATH/bootstrap/cache