Skip to main content

Artisan

Content

Artisan commands from backend Containers , Core and BasicCommands used for development.

Basic commands

Cache

php artisan cache:clear

Config

php artisan config:clear
php artisan config:cache

Routes

cache

php artisan route:cache

list

php artisan route:list

Migrations

php artisan migrate

Passwords

Sends password reminder email to users.

php artisan passwords:send-expiration-reminders

Code generation

php artisan make:action {container} {action : without suffix} {--section}
php artisan make:sub-action {container} {subAction : without suffix} {--section}
php artisan make:task {container} {task : without suffix} {--section}
php artisan make:api-transformer {container} {model : class (singular) for example User} {--section}
php artisan make:factory {container} {model : Class (singular) for example User} {--section}
php artisan make:repository {container} {model : Class (singular) for example User} {--section}
php artisan make:test {container : Container which test belongs to}
{--name= : Name of test (without suffix)} {--action= : Name of action that test will use}
{--task= : Name of task that test will use} {--section= : Section of containers}

For example: If you want to make test for your action called "GetCustomerAction", please use php artisan make:test Customers --action GetCustomerAction. This will help you inject your action to test for your usage.

GoodDay

Import data from GoodDay

php artisan import:goodday

Check if webhooks are suspended

php artisan goodday:check-webhook-status

Slack

Open chats between Slack Workspace users and Bot user. It also creates new database record in user_slack_message table for all new users.

php artisan slack-messaging-for-new-users:generate

Project specific commands

Notifications

Check if tasks have required fields filled.

php artisan notifications:task-missing-required-fields

Activity Reports

Create activity report from task comments.

php artisan activity_reports:create-for-task-comments

Delete old activity reports (all except the newest ones).

php artisan activity_reports:delete-old-reports

Monthly time reports

php artisan users-monthly-report:generate

Generates new report for current month for every user. Sends an e-mail with reports from previous month to all admins and managers. This command is automatically called every 1st day of month at 6:00.

Note: Regenerating report does not update user time reports.

php artisan users-monthly-report:update

Updates current month report for all users. Command is automatically called every day at 23:59.

User slack messages

php artisan slack-messaging-for-new-users:generate

Generates new record in user_slack_message table for all users, whose id is not in the table yet. This command is called automatically while creating new user.

Vacation

php artisan vacation-days-for-users:generate

Generates new record in user_vacation_days table for all users, whose id is not in the table with current year yet. This command is called automatically while creating new user and on the very first day of a new year.

User Invoices

php artisan user-invoice:generate

This command does generate records for users, that are expected to submit an invoice. Records are generated on the last day of a month.

php artisan user-invoice:check

This command does check if users did submit their invoices. Checking is done monthly on the eighth day. Users that did not submit an invoice are notified via email.

php users:user-contracts:generate-report-for-accountant

This command does generate a report for an accountant.

Servers

php artisan servers:sync

This command does synchronize all servers from Hetzner api to IS. This event happens every 10 minutes.

php artisan soft-deleted-configurations:remove

This command permanently deletes all soft-deleted configurations, which are older then certain amount of days.

Client Contracts

php artisan client-contract:generate-invoices

This command does check twice a month for a possibility of generating new invoices based on client contracts. If possible, new Client Contract Invoice is created.

php artisan client-contract:check-invoices-status

This command checks daily if every auto-generated invoice has been seen by its responsible person. If not, notification is dispatched.

External invoices

php artisan external-invoices:check-unpaid

This command checks weekly for invoices in overdue and notifies related clients via email.

Google Calendar

php artisan google-calendar:sync-for-active-users

This command does create/update events related with vacations.