Answers for "execute query sql in 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
0

Writing into the database with one click laravel

Route::post('/signup', [
    'as'   => 'signup',
    'uses' => 'YourController@manuelSignUP',
]);
Posted by: Guest on October-23-2020

Code answers related to "execute query sql in laravel"

Browse Popular Code Answers by Language