Support the ongoing development of →
Database Views Blade
Last updated 1 year ago.


First: read about Eleoquent ORM, how to get data from database.

Second: Learn here how to pass data to views.

Resume / Example:

Route::get('/', function()
    $data = Model::all(); // where "Model" can be any model you have inside of models directory or declared (eg. User).
    return View::make('index')->with('data', $data);  // now you can use the variable $data inside of your view.

Best luck.

Last updated 1 year ago.

Sign in to participate in this thread!


Your banner here too?


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

Your logo here?

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

© 2024 - All rights reserved.