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>
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2MTPBa7
via IFTTT
Aucun commentaire:
Enregistrer un commentaire