Support the ongoing development of Laravel.io →
bhbh

bhbh

Joined 6 Jun 2014

Statistics

Threads 2
Replies 10
Solutions 0
Articles 0

Undefined variable in view (when trying to grab database result)

Hi, Been stuck on this problem for about a week. I know its probably something simple I missed but I...

0 Likes
14 Replies

Tutorial error: unexpected 'extends' (T_EXTENDS)

Hi, I have this error when following the Laravel tutorial here (http://laravel.com/docs/quick#local-...

0 Likes
6 Replies
Solved
replied 11 years ago

Undefined variable in view (when trying to grab database result)

Got a breakthrough. If I were to include Sesson in my code, the view renders without the 'Undefined...

0 Likes
replied 11 years ago

Undefined variable in view (when trying to grab database result)

johnvic said: Try checking if you have an empty result..you can simply do count($results) and put i...

0 Likes
replied 11 years ago

Undefined variable in view (when trying to grab database result)

Volzy said: Try to dd($products); in your controller. Do you get a result? If database query doesn'...

0 Likes
replied 11 years ago

Tutorial error: unexpected 'extends' (T_EXTENDS)

darwinluague9001 said: did you save you file as blade.php file like "filename.blade.php"...

0 Likes
replied 11 years ago

Tutorial error: unexpected 'extends' (T_EXTENDS)

darwinluague9001 said: Try to remove <?php and ?> If its removed I get even more errors as s...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2026 Laravel.io - All rights reserved.