fetch data from database in laravel 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
}