how to retrive a data from database in laravel 8 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
}