src/Http/Controllers/UssdController.php
public function postUssdConfirmationProcess($user)
    {

        switch ($user->confirm_from) {
            case 1:
                $no = substr($user->phone, -9);

                $data['email'] = "0".$no."@agin.com";

                User::create($data);
                return true;
                break;

            default :
                return true;
                break;
        }

    }
public function postUssdConfirmationProcess($user)
    {

        switch ($user->confirm_from) {
            case 1:
                $no = substr($user->phone, -9);

                $data['email'] = "0".$no."@agin.com";

                User::create($data);
                return true;
                break;

            default :
                return true;
                break;
        }

    }
public function postUssdConfirmationProcess ( $ user ) { switch ( $ user -> confirm_from ) { case 1 : $ no = substr ( $ user -> phone , - 9 ) ; $ data [ 'email' ] = "0" . $ no . "@agin.com" ; User :: create ( $ data ) ; return true ; break ; default : return true ; break ; } }
post ussd confirmation, define your processes
post ussd confirmation define your processes