I am using ternary operator. here is my code :
<td>
{!! $cooking->deleted_at ?
'<button type="button" data-id=""
data-target="#restore-CF">Enable</button>'
:'<button type="button" data-id=""
data-target="#exampleModal-3">Disable</button>'!!}
</td>
When I inspect, in data-id=""
shows <?php echo e($cooking->id); ?>
, but its value is in number i.e 12. How to fix this??? I would be grateful to your help
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2I0Cf8E
via IFTTT
Aucun commentaire:
Enregistrer un commentaire