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 Usefull mathematic algorithm in laravel July 28, 2023 Social share button in laravel using navigator share api August 23, 2023 Left & right join in laravel July 28, 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.