Follow this Tutorial article, Step by Step, I hope you understand with this article, no special skills required

For Subscriptions

Renewing the free subscription and inform the users via email
This command is for renewing the free subscription and inform the users via email.

  • Cron : * * * * *
  • Change SERVER_PATH to your path

Example Command :

  • /usr/local/bin/php /home/SERVER_PATH/Application/artisan subscriptions:renewal-free >> /dev/null 2>&1

Sending email to remind the user about subscription renewal
This command is used to send an email reminder every 2 days to the user in last 6 days of subscription.

  • Cron : 0 0 */2 * *
  • Change SERVER_PATH to your path

Example Command :

  • /usr/local/bin/php /home/SERVER_PATH/Application/artisan subscription:renewal-reminder >> /dev/null 2>&1

Sending email for reminding the user after subscription expired
This command is used to send an email reminder every 3 days to the user in when the subscription is expired.

  • Cron : 0 0 */3 * *
  • Change SERVER_PATH to your path

Example Command :

  • /usr/local/bin/php /home/SERVER_PATH/Application/artisan subscription:expiry-reminder >> /dev/null 2>&1

Delete expired subscriptions if user does not renew it after the time you set on admin panel

  • Cron : * * * * *
  • Change SERVER_PATH to your path

Example Command :

  • /usr/local/bin/php /home/SERVER_PATH/Application/artisan subscriptions:delete-expired >> /dev/null 2>&1

For File

Delete expired files
This command is for deleting expired files.

  • Cron : * * * * *
  • Change SERVER_PATH to your path

Example Command :

  • /usr/local/bin/php /home/SERVER_PATH/Application/artisan uploads:delete-expired >> /dev/null 2>&1

Delete expired files
This commands is for deleting the files and chunks that uploaded by users and example : (when user left before upload completed).

  • Cron : 0 0 * * *
  • Change SERVER_PATH to your path

Example Command :

  • /usr/local/bin/php /home/SERVER_PATH/Application/artisan uploads:delete-chunks >> /dev/null 2>&1

For Transactions

Delete unpaid transactions
This command is for deleting the unpaid transactions.

  • Cron : 25 * * * *
  • Change SERVER_PATH to your path

Example Command :

  • /usr/local/bin/php /home/SERVER_PATH/Application/artisan transactions:unpaid-delete >> /dev/null 2>&1