laravel controller get data from database code example
Example: How to request and display data from db in larave
$users = DB::table('users')->get();
foreach($users as $key => $value)
{
//to get each columns value
//$value->name
}
$users = DB::table('users')->get();
foreach($users as $key => $value)
{
//to get each columns value
//$value->name
}