specifice one data row data 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();