DB::raw() query in laravel In case of long & sql query we use DB::raw(). $result = DB::select("SELECT * FROM users"); $result2 = DB::select(DB::raw("SELECT * FROM users")); both are similiar result showing You Might Also Like Controller Intro April 27, 2023 Galley image for ecommorce product single page with crop features March 30, 2025 Upload file in storage folder in laravel November 26, 2023 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.