Solution for "db raw execute laravel"

DB::statement('UPDATE users SET role_id = 1 WHERE role_id IS NULL AND YEAR(created_at) > 2020');

raw queries in laravel

Similar codes for "db raw execute laravel"


Latest 'PHP' questions

Added before "db raw execute laravel"