Answers for "make structure the fetch database in laravel"

PHP
1

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
}
Posted by: Guest on December-21-2020
1

db name laravel

DB::connection()->getDatabaseName() //laravel
Posted by: Guest on October-30-2020

Code answers related to "make structure the fetch database in laravel"

Browse Popular Code Answers by Language