You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
papamarfo edited this page Jul 30, 2026
·
2 revisions
Introduction to Action
USSD action let you introduce branching into your application based on some conditions. When transitioning between state, there are times you may want to transition based on certain condition. Action let you do that easily.
Creating an action
php artisan ussd:action MakePaymentAction
You can use action as the first initial state by using the init option in the create command.
php artisan ussd:action MenuAction --init
Write your logic to return the next state or action.