Shiva
8 months ago

Getting the Str::ascii to work on blade

Posted 8 months ago by Shiva

I'm tring to get a string to be converted to ascii, so I came across this Str::ascii but I can't get it to work in my blade template.

here is my code

<?php
    $success = url('payfast-success');
    $cancel = url('payfast-cancel');

    $test = Str::ascii($success);

    dd($test);
?>

Please sign in or create an account to participate in this conversation.