Answers for "write sql code 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

Browse Popular Code Answers by Language