Answers for "sql laravel"

PHP
0

laravel sql query

use Illuminate\Support\Facades\DB;

$users = DB::select('select * from users');

foreach ($users as $user) {
    echo $user->name;
}
Posted by: Guest on January-07-2021
1

db name laravel

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

Browse Popular Code Answers by Language