In laravel view file:
@if(Session::has('success'))
<p class="alert alert-info"></p>
@endif
above code not working, its getting display on view file as it is..
But I am using simple php instead of that:
<?php if (Session::has('success')){ ?>
<p class="alert alert-info"><?php echo Session::get('success'); ?></p>
<?php } ?>
Its working properly.. then why this is happning
php code is working properly but simple laravel code is not working in laravel view/blade file.. its getting printed on view page as it is..
please clarify this..
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire