single row in table laravel code example
Example: single row data from table in laravel
collect(\DB::select("SELECT * FROM table_name WHERE id=$id"))->first();
collect(\DB::select("SELECT * FROM table_name WHERE id=$id"))->first();