First Laravel Project.
I want to make a form drop-down list what is populated from mysql database. I found this on the documentation:
Form::select('size', array('L' => 'Large', 'S' => 'Small'))
and I tried this:
{{Form::select('size', array(
@foreach ($suppliers as $supplier)
$supplier->id => $supplier->name
@endforeach
))
}}
But I got syntax error:
ErrorException in e34a9587ee23853b6d4c489cc0ed13515fad9c06.php line 23: Parse error: syntax error, unexpected '<', expecting ')' (View: /var/www/html/project/laravel/leltar/resources/views/invoice.blade.php)
What did I wrong?