lundi 21 août 2017

php code is working in laravel view files but core simple laravel code is not in laravel view file (laravel version:5.2.45)

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..



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2fYa5PH
via IFTTT

Aucun commentaire:

Enregistrer un commentaire