Support the ongoing development of Laravel.io →
posted 10 years ago
Database
Last updated 2 years ago.
0

What happens? Error messages please. Have you configured config\database.php correctly?

Last updated 2 years ago.
0

maybe it doesn't work with Eloquent?

Last updated 2 years ago.
0

I use SQL 2008R2 at work with Laravel and Eloquent, it works fine.

Last updated 2 years ago.
0

AndrewBNZ said:

What happens? Error messages please. Have you configured config\database.php correctly?

No error, just omit this part

foreach ($data as $item) {
      echo $item->descripcion;
 }

i'd appreciate if you tell me what i must install and i do it.

Last updated 2 years ago.
0

my problem was

$data = Work1::all();

because that table had more than 50.000 register, so they never show up. and another problem that i have.

$model = Table1::where('FIELD1', '=', 123);
//i forgot ->get()
$model = Table1::where('FIELD1', '=', 123)->get();
//so this part never recive data

return View::make('layout.view1')
		->with('data',$model);
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

rafahoiro rafahoiro Joined 14 Mar 2014

Moderators

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.

© 2024 Laravel.io - All rights reserved.