Create SendWelcomeEmailNotification notification
php artisan make:notification SendWelcomeEmailNotification
| # stop script on error signal | |
| set -e | |
| # remove old deployment folders | |
| if [ -d "/home/forge/deploy" ]; then | |
| rm -R /home/forge/deploy | |
| fi | |
| if [ -d "/home/forge/backup" ]; then | |
| rm -R /home/forge/backup | |
| fi |
Before proceed, you may want to follow up Send Welcome Email Notification with Event and Listener.
Create new migration script to add activation_token and activated_at column in users table.
php artisan make:migration add_activation_column --table=users
Before proceed, you may want to follow up
Create a middleware
| # location - C:\Windows\System32\drivers\etc | |
| 127.0.0.1 localhost | |
| # add the following line (to allow to enter laravel-admin.dev in your browser) | |
| 127.0.0.1 laravel-admin.dev |
| /* | |
| * MyClass | |
| */ | |
| var MyClass = function (options) | |
| { | |
| /* | |
| * Variables accessible | |
| * in the class | |
| */ |
| # Change to the project directory | |
| cd $FORGE_SITE_PATH | |
| # Turn on maintenance mode | |
| php artisan down || true | |
| # Pull the latest changes from the git repository | |
| # git reset --hard | |
| # git clean -df | |
| git pull origin $FORGE_SITE_BRANCH |