laravel one row table only 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();