php - "Unexpected _data T_String" in Blade, Laravel -



php - "Unexpected _data T_String" in Blade, Laravel -

i next along jeffrey ways laracasts on website , learning unfortunately made error somewhere , don't know is. receiving next error.

https://laracasts.com/series/laravel-from-scratch symfony \ component \ debug \ exception \ fatalerrorexception syntax error, unexpected '__data' (t_string) <?php $__env->startsection('content'); ?> <h1>all users</h1> <?php foreach($users $user): ?> <li><?php echo link_to("/users/{$user->username}", $user->username); ?></li> <?php endforeach; ?>; <?php $__env->stopsection(); ?> <?php echo $__env->make('layouts.default, array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

i'm not quite sure why getting issue. can explain me please can understand?

i think missed single quote on lastly line. seek this:

<?php $__env->startsection('content'); ?> <h1>all users</h1> <?php foreach($users $user): ?> <li><?php echo link_to("/users/{$user->username}", $user->username); ?></li> <?php endforeach; ?>; <?php $__env->stopsection(); ?> <?php echo $__env->make('layouts.default', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

php laravel-4

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -