emfpc
217
11
Laravel

Decrypt data in Blade

Posted 1 month ago by emfpc

Hello,

I'm displaying my data in a view; the data is encrypted.

To encrypt data I'm using: use Illuminate\Support\Facades\Crypt; Crypte::encryptString(#);

and to decrypted data: Crypte::decryptString(#);

how can i decrypt data when i'm in Blade Template:

    @foreach ($guests as $guest )
        <li>{{ ($guest->name) }}</li>
            
        @endforeach
    

The data it shows but is encrypted.

thanks in advance

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