mardi 3 septembre 2019

How to print decrypted password on views using blade syntax?

i am storing password in encrypted format using laravel ant it works fine and stored as expected but if i want to print these passwords in decrypted format using the blade syntax how i will do it?

Insert into Database (Code):

    $student = new Student();
    $student->name = $req->get('name');
    $student->email = $req->get('email');
    $student->password = Crypt::encryptString($req->get('password'));
    $student->phone = $req->get('phone');
    $student->dateofbirth = $req->get('dob');

    $student->save();

Fetch from Database and Print (code):`

<table border='1' align="center">
        <tr>
            <th>Id</th>
            <th>Name</th>
            <th>Email</th>
            <th>Password</th>
            <th>Phone no</th>
            <th>Date of Birth</th>
        </tr>
        @foreach($datas as $key=>$value)
            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
        @endforeach
    </table>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire